Skip to content

Commit

Permalink
support page redirect outside (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardo Vieira authored Mar 16, 2023
1 parent 2730430 commit 48040fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ NEXT_PUBLIC_GOOGLE_PLACES_KEY=<NEXT_PUBLIC_GOOGLE_PLACES_KEY>
NEXT_PUBLIC_SENTRY_DSN=<NEXT_PUBLIC_SENTRY_DSN>
NEXT_PUBLIC_SIGNATURE_EXPIRES=<DAYS_UNTIL_SIGNATURE_EXPIRES>
NEXT_PUBLIC_SIGNATURE_MESSAGE=<SIGNATURE_MESSAGE>
NEXT_PUBLIC_SUPPORT_URL=<SUPPORT_URL>
NEXT_PUBLIC_ENABLE_LEARN_EARN=true
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const languageRedirects = [
{ source: '/fr-FR/:path*', destination: '/fr/:path*' },
{ source: '/fr-fr/:path*', destination: '/fr/:path*' },
{ source: '/pt-br/:path*', destination: '/pt/:path*' },
{ source: '/pt-BR/:path*', destination: '/pt/:path*' }
{ source: '/pt-BR/:path*', destination: '/pt/:path*' },
// eslint-disable-next-line no-process-env
{ source: '/support', destination: process.env.NEXT_PUBLIC_SUPPORT_URL },
].map(redirect => ({ ...redirect, permanent: true }));

const redirects = () => languageRedirects;
Expand Down

1 comment on commit 48040fc

@vercel
Copy link

@vercel vercel bot commented on 48040fc Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

app.impactmarket.com
app-git-production-ipct.vercel.app
app-ipct.vercel.app

Please sign in to comment.