fix: allow SHOW_UPCOMING_CHANGES=true on staging (#51288)

This commit is contained in:
Oliver Eyton-Williams
2023-08-16 16:25:59 +02:00
committed by GitHub
parent b778eb568d
commit 8700500668
+1 -1
View File
@@ -101,7 +101,7 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
`);
if (env['showUpcomingChanges'])
if (env['showUpcomingChanges'] && env['deploymentEnv'] !== 'staging')
throw Error(`
SHOW_UPCOMING_CHANGES should never be 'true' in production