From 3b813f6ed9997bba56bf720829b817d9dea6745b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20E=C3=A9n?= Date: Fri, 14 Jul 2023 10:06:44 +0200 Subject: [PATCH] Remove homecoming feature flag --- apps/store/.env.local.example | 1 - apps/store/next.config.js | 30 ++++++++++++++---------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/apps/store/.env.local.example b/apps/store/.env.local.example index eb2bffcdb5..743057266d 100644 --- a/apps/store/.env.local.example +++ b/apps/store/.env.local.example @@ -40,7 +40,6 @@ NEXT_PUBLIC_FEATURE_INSURELY= 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= diff --git a/apps/store/next.config.js b/apps/store/next.config.js index f66f20a7c7..22600d387a 100644 --- a/apps/store/next.config.js +++ b/apps/store/next.config.js @@ -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, + })), + ] }, })