Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove homecoming feature flag #2762

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/store/.env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ NEXT_PUBLIC_FEATURE_INSURELY=<true>
NEXT_PUBLIC_FEATURE_ENGLISH_LANGUAGE=true
NEXT_PUBLIC_FEATURE_COUNTRY_SELECTOR=true
NEXT_PUBLIC_FEATURE_SAS_PARTNERSHIP=true
NEXT_PUBLIC_FEATURE_HOMECOMING=true

# Vercel Edge Config Connection String (https://github.com/vercel/edge-config)
EDGE_CONFIG=
Expand Down
30 changes: 14 additions & 16 deletions apps/store/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,20 @@ module.exports = withBundleAnalyzer({
async redirects() {
const locales = ['no', 'no-en', 'dk', 'dk-en']

return process.env.NEXT_PUBLIC_FEATURE_HOMECOMING === 'true'
? [
...locales.map((locale) => ({
source: `/${locale}/new-member`,
destination: `/${locale}/info`,
permanent: true,
locale: false,
})),
...locales.map((locale) => ({
source: `/${locale}/new-member/offer/:slug*`,
destination: `/${locale}/info`,
permanent: true,
locale: false,
})),
]
: []
return [
...locales.map((locale) => ({
source: `/${locale}/new-member`,
destination: `/${locale}/info`,
permanent: true,
locale: false,
})),
...locales.map((locale) => ({
source: `/${locale}/new-member/offer/:slug*`,
destination: `/${locale}/info`,
permanent: true,
locale: false,
})),
]
},
})

Expand Down