mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(tooling): add turbo eslint plugin (#65734)
This commit is contained in:
committed by
GitHub
parent
f054de20fd
commit
ae50644091
@@ -159,12 +159,7 @@ if (process.env.FREECODECAMP_NODE_ENV !== 'development') {
|
||||
export const HOME_LOCATION = process.env.HOME_LOCATION;
|
||||
// Mailpit is used in development and test environments, hence the localhost
|
||||
// default.
|
||||
// TODO: Remove MAILHOG_HOST in a few months
|
||||
// We renamed MailHog to MailPit, but kept the same port and API
|
||||
// This is to keep backward compatibility with existing setups
|
||||
// that might still use MAILHOG_HOST environment variable
|
||||
export const MAILPIT_HOST =
|
||||
process.env.MAILPIT_HOST ?? process.env.MAILHOG_HOST ?? 'localhost';
|
||||
export const MAILPIT_HOST = process.env.MAILPIT_HOST ?? 'localhost';
|
||||
export const MONGOHQ_URL =
|
||||
process.env.NODE_ENV === 'test'
|
||||
? createTestConnectionURL(
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "https://v2-8-1.turborepo.dev/schema.json",
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"build": {
|
||||
"env": [
|
||||
"API_LOCATION",
|
||||
"AUTH0_CLIENT_ID",
|
||||
"AUTH0_CLIENT_SECRET",
|
||||
"AUTH0_DOMAIN",
|
||||
"COOKIE_DOMAIN",
|
||||
"COOKIE_SECRET",
|
||||
"DEPLOYMENT_ENV",
|
||||
"DEPLOYMENT_VERSION",
|
||||
"EMAIL_PROVIDER",
|
||||
"FCC_API_LOG_LEVEL",
|
||||
"FCC_API_LOG_TRANSPORT",
|
||||
"FCC_ENABLE_DEV_LOGIN_MODE",
|
||||
"FCC_ENABLE_SENTRY_ROUTES",
|
||||
"FCC_ENABLE_SHADOW_CAPTURE",
|
||||
"FCC_ENABLE_SWAGGER_UI",
|
||||
"FCC_ENABLE_TEST_LOGGING",
|
||||
"FREECODECAMP_NODE_ENV",
|
||||
"GROWTHBOOK_FASTIFY_API_HOST",
|
||||
"GROWTHBOOK_FASTIFY_CLIENT_KEY",
|
||||
"HOME_LOCATION",
|
||||
"HOST",
|
||||
"JWT_SECRET",
|
||||
"MAILPIT_HOST",
|
||||
"NODE_ENV",
|
||||
"PORT",
|
||||
"SENTRY_DSN",
|
||||
"SENTRY_ENVIRONMENT",
|
||||
"SES_ID",
|
||||
"SES_REGION",
|
||||
"SES_SECRET",
|
||||
"SHOW_UPCOMING_CHANGES",
|
||||
"STRIPE_SECRET_KEY"
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"passThroughEnv": ["VITEST_WORKER_ID"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user