6 things would fail quietly instead.
| variable | why | declared for | first read at |
|---|---|---|---|
| UTILS_SECRET | the read raises when unset | ci, example, prod, test | server/env.ts:80 |
| variable | declared for | read at |
|---|---|---|
| ALLOWED_PRIVATE_IP_ADDRESSES | — — nowhere | server/env.ts:896 |
| AWS_S3_UPLOAD_BUCKET_NAME | example, prod | server/env.ts:717 |
| AWS_S3_UPLOAD_MAX_SIZE | — — nowhere | server/env.ts:640 |
| AWS_S3_UPLOAD_METHOD | example | server/env.ts:743 |
| DATABASE_CONNECTION_POOL_MAX | example | server/env.ts:177 |
| DATABASE_CONNECTION_POOL_MIN | example | server/env.ts:166 |
| DATABASE_CONNECTION_POOL_URL | — — nowhere | server/env.ts:157 |
| DATABASE_HOST | — — nowhere | server/config/database.js:4 |
| DATABASE_NAME | — — nowhere | server/config/database.js:8 |
| DATABASE_SCHEMA | — — nowhere | server/env.ts:149 |
| DATABASE_URL_READ_ONLY | — — nowhere | server/env.ts:104 |
| DATABASE_USER | — — nowhere | server/config/database.js:6 |
| DISCORD_CLIENT_ID | example | plugins/discord/server/env.ts:13 |
| DISCORD_CLIENT_SECRET | example | plugins/discord/server/env.ts:19 |
| DISCORD_SERVER_ID | example | plugins/discord/server/env.ts:25 |
| DISCORD_SERVER_ROLES | example | plugins/discord/server/env.ts:31 |
| DROPBOX_APP_KEY | example | server/env.ts:508 |
| FIGMA_CLIENT_ID | example, test | plugins/figma/server/env.ts:13 |
| FIGMA_CLIENT_SECRET | example, test | plugins/figma/server/env.ts:21 |
| FILE_STORAGE | example, test | server/env.ts:749 |
| FILE_STORAGE_IMPORT_MAX_SIZE | example | server/env.ts:773 |
| FILE_STORAGE_IMPORT_TIMEOUT | — — nowhere | server/env.ts:783 |
| FILE_STORAGE_LOCAL_ROOT_DIR | build, example, test | server/env.ts:755 |
| FILE_STORAGE_UPLOAD_MAX_SIZE | example, prod | server/env.ts:763 |
| FILE_STORAGE_WORKSPACE_IMPORT_MAX_SIZE | example | server/env.ts:790 |
| GOOGLE_ANALYTICS_ID | prod | server/env.ts:537 |
| GOOGLE_CLIENT_ID | example, prod, test | plugins/google/server/env.ts:12 |
| GOOGLE_CLIENT_SECRET | example, prod, test | plugins/google/server/env.ts:17 |
| IFRAMELY_API_KEY | example, test | plugins/iframely/server/env.ts:24 |
| LINEAR_CLIENT_ID | example, test | plugins/linear/server/env.ts:13 |
| LINEAR_CLIENT_SECRET | example, test | plugins/linear/server/env.ts:21 |
| MAXIMUM_EXPORT_SIZE | — — nowhere | server/env.ts:815 |
| MAXIMUM_IMPORT_SIZE | — — nowhere | server/env.ts:774 |
| NOTION_CLIENT_ID | example, test | plugins/notion/server/env.ts:10 |
| NOTION_CLIENT_SECRET | example, test | plugins/notion/server/env.ts:15 |
| OAUTH_PROVIDER_ACCESS_TOKEN_LIFETIME | — — nowhere | server/env.ts:822 |
| OAUTH_PROVIDER_AUTHORIZATION_CODE_LIFETIME | — — nowhere | server/env.ts:839 |
| OAUTH_PROVIDER_REFRESH_TOKEN_LIFETIME | — — nowhere | server/env.ts:830 |
| OIDC_AUTH_URI | example, prod, test | plugins/oidc/server/env.ts:50 |
| OIDC_CLIENT_ID | example, prod, test | plugins/oidc/server/env.ts:14 |
| OIDC_CLIENT_SECRET | example, prod, test | plugins/oidc/server/env.ts:19 |
| OIDC_DISABLE_REDIRECT | prod | plugins/oidc/server/env.ts:95 |
| OIDC_ISSUER_URL | — — nowhere | plugins/oidc/server/env.ts:32 |
| OIDC_LOGOUT_URI | example, prod, test | plugins/oidc/server/env.ts:107 |
| OIDC_TOKEN_URI | example, prod, test | plugins/oidc/server/env.ts:60 |
| OIDC_USERINFO_URI | example, prod, test | plugins/oidc/server/env.ts:71 |
| POPULARITY_ACTIVITY_THRESHOLD_WEEKS | — — nowhere | server/env.ts:929 |
| POPULARITY_GRAVITY | — — nowhere | server/env.ts:920 |
| POPULARITY_UPDATE_INTERVAL_HOURS | — — nowhere | server/env.ts:938 |
| PROXY_IP_HEADER | — — nowhere | server/env.ts:398 |
| RATE_LIMITER_COLLABORATION_REQUESTS | — — nowhere | server/env.ts:605 |
| RATE_LIMITER_DURATION_WINDOW | example | server/env.ts:616 |
| RATE_LIMITER_MULTIPLIER | example | server/env.ts:630 |
| RATE_LIMITER_REQUESTS | example | server/env.ts:596 |
| REDIS_COLLABORATION_URL | example | server/env.ts:202 |
| RELEASE | — — nowhere | server/env.ts:529 |
| REQUEST_TIMEOUT | — — nowhere | server/env.ts:343 |
| SEARCH_PROVIDER | — — nowhere | server/env.ts:905 |
| SLACK_APP_ID | example, prod | plugins/slack/server/env.ts:24 |
| SLACK_KEY | — — nowhere | plugins/slack/server/env.ts:15 |
| SLACK_SECRET | — — nowhere | plugins/slack/server/env.ts:28 |
| SLACK_VERIFICATION_TOKEN | ci, example, prod, test | plugins/slack/server/env.ts:45 |
| SMTP_FROM_EMAIL | example, local, prod, test | server/env.ts:468 |
| SMTP_HOST | prod, test | server/env.ts:425 |
| SMTP_NAME | — — nowhere | server/env.ts:443 |
| SMTP_PASSWORD | example, prod | server/env.ts:461 |
| SMTP_PORT | prod | server/env.ts:451 |
| SMTP_REPLY_EMAIL | prod, test | server/env.ts:476 |
| SMTP_SERVICE | example, prod | server/env.ts:433 |
| SMTP_TLS_CIPHERS | prod | server/env.ts:481 |
| SMTP_USERNAME | ci, example, prod, test | server/env.ts:456 |
| SOURCE_VERSION | — — nowhere | server/env.ts:558 |
| WEBHOOK_FAILURE_RATE_THRESHOLD | — — nowhere | server/env.ts:885 |
| WEBHOOK_FAILURE_TIME_WINDOW | — — nowhere | server/env.ts:876 |
| WORKER_CONCURRENCY_EVENTS | — — nowhere | server/env.ts:568 |
| WORKER_CONCURRENCY_TASKS | — — nowhere | server/env.ts:577 |
It is declared for prod and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
It is declared for prod and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
It is declared for prod, test and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
It is declared for prod and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
It is declared for prod, test and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
It is declared for prod and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
| variable | example | local | test | ci | prod | build |
|---|---|---|---|---|---|---|
| UTILS_SECRET | yes | no | yes | yes | yes | no |
| ALLOWED_PRIVATE_IP_ADDRESSES | no | no | no | no | no | no |
| AWS_S3_UPLOAD_BUCKET_NAME | yes | no | no | no | yes | no |
| AWS_S3_UPLOAD_MAX_SIZE | no | no | no | no | no | no |
| AWS_S3_UPLOAD_METHOD | yes | no | no | no | no | no |
| DATABASE_CONNECTION_POOL_MAX | yes | no | no | no | no | no |
| DATABASE_CONNECTION_POOL_MIN | yes | no | no | no | no | no |
| DATABASE_CONNECTION_POOL_URL | no | no | no | no | no | no |
| DATABASE_HOST | no | no | no | no | no | no |
| DATABASE_NAME | no | no | no | no | no | no |
| DATABASE_SCHEMA | no | no | no | no | no | no |
| DATABASE_URL_READ_ONLY | no | no | no | no | no | no |
| DATABASE_USER | no | no | no | no | no | no |
| DISCORD_CLIENT_ID | yes | no | no | no | no | no |
| DISCORD_CLIENT_SECRET | yes | no | no | no | no | no |
| DISCORD_SERVER_ID | yes | no | no | no | no | no |
| DISCORD_SERVER_ROLES | yes | no | no | no | no | no |
| DROPBOX_APP_KEY | yes | no | no | no | no | no |
| FIGMA_CLIENT_ID | yes | no | yes | no | no | no |
| FIGMA_CLIENT_SECRET | yes | no | yes | no | no | no |
| FILE_STORAGE | yes | no | yes | no | no | no |
| FILE_STORAGE_IMPORT_MAX_SIZE | yes | no | no | no | no | no |
| FILE_STORAGE_IMPORT_TIMEOUT | no | no | no | no | no | no |
| FILE_STORAGE_LOCAL_ROOT_DIR | yes | no | yes | no | no | yes |
| FILE_STORAGE_UPLOAD_MAX_SIZE | yes | no | no | no | yes | no |
| FILE_STORAGE_WORKSPACE_IMPORT_MAX_SIZE | yes | no | no | no | no | no |
| GOOGLE_ANALYTICS_ID | no | no | no | no | yes | no |
| GOOGLE_CLIENT_ID | yes | no | yes | no | yes | no |
| GOOGLE_CLIENT_SECRET | yes | no | yes | no | yes | no |
| IFRAMELY_API_KEY | yes | no | yes | no | no | no |
| LINEAR_CLIENT_ID | yes | no | yes | no | no | no |
| LINEAR_CLIENT_SECRET | yes | no | yes | no | no | no |
| MAXIMUM_EXPORT_SIZE | no | no | no | no | no | no |
| MAXIMUM_IMPORT_SIZE | no | no | no | no | no | no |
| NOTION_CLIENT_ID | yes | no | yes | no | no | no |
| NOTION_CLIENT_SECRET | yes | no | yes | no | no | no |
| OAUTH_PROVIDER_ACCESS_TOKEN_LIFETIME | no | no | no | no | no | no |
| OAUTH_PROVIDER_AUTHORIZATION_CODE_LIFETIME | no | no | no | no | no | no |
| OAUTH_PROVIDER_REFRESH_TOKEN_LIFETIME | no | no | no | no | no | no |
| OIDC_AUTH_URI | yes | no | yes | no | yes | no |
| OIDC_CLIENT_ID | yes | no | yes | no | yes | no |
| OIDC_CLIENT_SECRET | yes | no | yes | no | yes | no |
| OIDC_DISABLE_REDIRECT | no | no | no | no | yes | no |
| OIDC_ISSUER_URL | no | no | no | no | no | no |
| OIDC_LOGOUT_URI | yes | no | yes | no | yes | no |
| OIDC_TOKEN_URI | yes | no | yes | no | yes | no |
| OIDC_USERINFO_URI | yes | no | yes | no | yes | no |
| POPULARITY_ACTIVITY_THRESHOLD_WEEKS | no | no | no | no | no | no |
| POPULARITY_GRAVITY | no | no | no | no | no | no |
| POPULARITY_UPDATE_INTERVAL_HOURS | no | no | no | no | no | no |
| PROXY_IP_HEADER | no | no | no | no | no | no |
| RATE_LIMITER_COLLABORATION_REQUESTS | no | no | no | no | no | no |
| RATE_LIMITER_DURATION_WINDOW | yes | no | no | no | no | no |
| RATE_LIMITER_MULTIPLIER | yes | no | no | no | no | no |
| RATE_LIMITER_REQUESTS | yes | no | no | no | no | no |
| REDIS_COLLABORATION_URL | yes | no | no | no | no | no |
| RELEASE | no | no | no | no | no | no |
| REQUEST_TIMEOUT | no | no | no | no | no | no |
| SEARCH_PROVIDER | no | no | no | no | no | no |
| SLACK_APP_ID | yes | no | no | no | yes | no |
| SLACK_KEY | no | no | no | no | no | no |
| SLACK_SECRET | no | no | no | no | no | no |
| SLACK_VERIFICATION_TOKEN | yes | no | yes | yes | yes | no |
| SMTP_FROM_EMAIL | yes | yes | yes | no | yes | no |
| SMTP_HOST | no | no | yes | no | yes | no |
| SMTP_NAME | no | no | no | no | no | no |
| SMTP_PASSWORD | yes | no | no | no | yes | no |
| SMTP_PORT | no | no | no | no | yes | no |
| SMTP_REPLY_EMAIL | no | no | yes | no | yes | no |
| SMTP_SERVICE | yes | no | no | no | yes | no |
| SMTP_TLS_CIPHERS | no | no | no | no | yes | no |
| SMTP_USERNAME | yes | no | yes | yes | yes | no |
| SOURCE_VERSION | no | no | no | no | no | no |
| WEBHOOK_FAILURE_RATE_THRESHOLD | no | no | no | no | no | no |
| WEBHOOK_FAILURE_TIME_WINDOW | no | no | no | no | no | no |
| WORKER_CONCURRENCY_EVENTS | no | no | no | no | no | no |
| WORKER_CONCURRENCY_TASKS | no | no | no | no | no | no |
| variable | default | declared for | read at |
|---|---|---|---|
| AWS_S3_ACCELERATE_URL | — | example | server/env.ts:671 |
| AWS_S3_ACL | private | example, prod | server/env.ts:733 |
| AWS_S3_FORCE_PATH_STYLE | true | example, prod | server/env.ts:726 |
| AWS_S3_UPLOAD_BUCKET_URL | — | example, prod | server/env.ts:710 |
| CDN_URL | — | build, example | server/env.ts:281 |
| COLLABORATION_MAX_CLIENTS_PER_DOCUMENT | 100 | — | server/env.ts:306 |
| COLLABORATION_URL | — | example, test | server/env.ts:295 |
| DATABASE_PASSWORD | — | — | server/config/database.js:7 |
| DATABASE_PORT | — | — | server/config/database.js:5 |
| DATABASE_READ_ONLY_URL | — | — | server/env.ts:104 |
| DEFAULT_LANGUAGE | en_US | example, prod | server/env.ts:365 |
| DEVELOPMENT_UNSAFE_INLINE_CSP | false | local | server/env.ts:866 |
| ENABLE_UPDATES | — | example, prod | server/env.ts:416 |
| FORCE_HTTPS | true | example | server/env.ts:390 |
| IFRAMELY_URL | https://iframe.ly | example | plugins/iframely/server/env.ts:17 |
| INSTANCE_ID | — | — | server/logging/Metrics.ts:23 |
| OAUTH_DISABLE_CIMD | false | — | server/env.ts:858 |
| OAUTH_DISABLE_DCR | false | — | server/env.ts:848 |
| OIDC_DISPLAY_NAME | OpenID Connect | example, prod | plugins/oidc/server/env.ts:40 |
| OIDC_SCOPES | openid profile email | example, prod | plugins/oidc/server/env.ts:85 |
| OIDC_USERNAME_CLAIM | preferred_username | example, prod | plugins/oidc/server/env.ts:79 |
| PROXY_HEADERS_TRUSTED | true | — | server/env.ts:407 |
| RATE_LIMITER_ENABLED | true | example, test | server/env.ts:585 |
| REDIS_EPHEMERAL_COMMAND_TIMEOUT | 500 | — | server/env.ts:245 |
| REDIS_HEALTHCHECK_INTERVAL | 30000 | — | server/env.ts:211 |
| REDIS_HEALTHCHECK_TIMEOUT | 5000 | — | server/env.ts:222 |
| REDIS_UNAVAILABLE_TIMEOUT | 300000 | — | server/env.ts:233 |
| SECRET_KEY | — | ci, example, prod, test | server/env.ts:73 |
| SERVICES | collaboration,websockets,worker,web | — | server/env.ts:377 |
| SLACK_CLIENT_ID | — | example, prod, test | plugins/slack/server/env.ts:15 |
| SLACK_CLIENT_SECRET | — | example, prod, test | plugins/slack/server/env.ts:37 |
| SLACK_MESSAGE_ACTIONS | false | example | plugins/slack/server/env.ts:55 |
| SMTP_DISABLE_STARTTLS | false | prod | server/env.ts:500 |
| SMTP_SECURE | true | prod | server/env.ts:490 |
| SOURCE_COMMIT | — | — | server/env.ts:558 |
| TELEMETRY | true | — | server/env.ts:416 |
| URL | — | ci, example, local, prod, test | server/env.ts:261 |