From 9d3096380aa920d7ca7d14020689c491e5c74821 Mon Sep 17 00:00:00 2001 From: GhitaB Date: Tue, 13 Jun 2023 14:33:00 +0300 Subject: [PATCH] Fix condition for external routes. --- src/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0ad0f8e6..f7a0d4a9 100644 --- a/src/index.js +++ b/src/index.js @@ -25,7 +25,13 @@ import GeolocationWidget from './components/theme/Widgets/GeolocationWidget'; const applyConfig = (config) => { const notInEnMission = /^(?!(\/en\/mission)).*$/; - if (!__DEVELOPMENT__ && !process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES) { + if ( + !( + __DEVELOPMENT__ || + (process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES && + process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES === 'True') + ) + ) { config.settings.externalRoutes = [ ...(config.settings.externalRoutes || []), {