mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
refactor(api): remove exam-env feature flag (#63909)
This commit is contained in:
@@ -40,7 +40,6 @@ import {
|
||||
FCC_ENABLE_DEV_LOGIN_MODE,
|
||||
FCC_ENABLE_SWAGGER_UI,
|
||||
FCC_ENABLE_SHADOW_CAPTURE,
|
||||
FCC_ENABLE_EXAM_ENVIRONMENT,
|
||||
FCC_ENABLE_SENTRY_ROUTES,
|
||||
GROWTHBOOK_FASTIFY_API_HOST,
|
||||
GROWTHBOOK_FASTIFY_CLIENT_KEY
|
||||
@@ -223,7 +222,6 @@ export const build = async (
|
||||
}
|
||||
});
|
||||
|
||||
if (FCC_ENABLE_EXAM_ENVIRONMENT ?? fastify.gb.isOn('exam-environment')) {
|
||||
void fastify.register(function (fastify, _opts, done) {
|
||||
fastify.addHook('onRequest', fastify.authorizeExamEnvironmentToken);
|
||||
|
||||
@@ -231,7 +229,6 @@ export const build = async (
|
||||
done();
|
||||
});
|
||||
void fastify.register(examEnvironmentOpenRoutes);
|
||||
}
|
||||
|
||||
if (FCC_ENABLE_SENTRY_ROUTES ?? fastify.gb.isOn('sentry-routes')) {
|
||||
void fastify.register(publicRoutes.sentryRoutes);
|
||||
|
||||
@@ -32,7 +32,6 @@ vi.mock('../../utils/env', async importOriginal => {
|
||||
const actual = await importOriginal<typeof import('../../utils/env.js')>();
|
||||
return {
|
||||
...actual,
|
||||
FCC_ENABLE_EXAM_ENVIRONMENT: 'true',
|
||||
DEPLOYMENT_ENV: 'production'
|
||||
};
|
||||
});
|
||||
|
||||
@@ -192,9 +192,6 @@ export const FCC_API_LOG_TRANSPORT = _FCC_API_LOG_TRANSPORT;
|
||||
export const FCC_ENABLE_SHADOW_CAPTURE = undefinedOrBool(
|
||||
process.env.FCC_ENABLE_SHADOW_CAPTURE
|
||||
);
|
||||
export const FCC_ENABLE_EXAM_ENVIRONMENT = undefinedOrBool(
|
||||
process.env.FCC_ENABLE_EXAM_ENVIRONMENT
|
||||
);
|
||||
export const FCC_ENABLE_SENTRY_ROUTES = undefinedOrBool(
|
||||
process.env.FCC_ENABLE_SENTRY_ROUTES
|
||||
);
|
||||
|
||||
@@ -61,7 +61,6 @@ SHOW_UPCOMING_CHANGES=false
|
||||
FCC_ENABLE_SWAGGER_UI=true
|
||||
FCC_ENABLE_DEV_LOGIN_MODE=true
|
||||
FCC_ENABLE_SHADOW_CAPTURE=false
|
||||
FCC_ENABLE_EXAM_ENVIRONMENT=false
|
||||
FCC_ENABLE_SENTRY_ROUTES=false
|
||||
FCC_API_LOG_LEVEL=info
|
||||
FCC_API_LOG_TRANSPORT=pretty
|
||||
|
||||
Reference in New Issue
Block a user