documenso

environment and configuration, read statically · 2026-12-04 11:28 · 2479 source files, 140 variables read, 147 declared
Nothing here stops it starting.

7 things would fail quietly instead. 3 are worth tidying..

What it needs before it starts

Set these and the program has what it asks for. Anything not listed has a default in the code.
variablewhydeclared forfirst read at
NEXT_PRIVATE_ENCRYPTION_KEYthe read raises when unsetbuild, example, local, prodpackages/ee/server-only/signing/csc/ciphers.ts:25
NEXT_PRIVATE_SIGNING_CSC_OAUTH_CLIENT_IDthe read raises when unsetbuild, examplepackages/ee/server-only/signing/csc/transport.ts:110
NEXT_PRIVATE_SIGNING_CSC_OAUTH_CLIENT_SECRETthe read raises when unsetbuild, examplepackages/ee/server-only/signing/csc/transport.ts:111
NEXT_PRIVATE_SIGNING_CSC_PROVIDER_BASE_URLthe read raises when unsetbuild, examplepackages/ee/server-only/signing/csc/transport.ts:109
NEXT_PUBLIC_DISABLE_EMAIL_PASSWORD_SIGNINsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
NEXT_PUBLIC_DISABLE_EMAIL_PASSWORD_SIGNUPsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
NEXT_PUBLIC_DISABLE_GOOGLE_SIGNINsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
NEXT_PUBLIC_DISABLE_GOOGLE_SIGNUPsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
NEXT_PUBLIC_DISABLE_MICROSOFT_SIGNINsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
NEXT_PUBLIC_DISABLE_MICROSOFT_SIGNUPsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
NEXT_PUBLIC_DISABLE_OIDC_SIGNINsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
NEXT_PUBLIC_DISABLE_OIDC_SIGNUPsubstituted into docker/production/compose.yml with no defaultbuild, example, local, proddocker/production/compose.yml
8 more are read with no fallback — empty if you do not set them
These do not stop anything. The read evaluates to nothing and whatever depends on it is inactive, which is why this class of problem survives into production.
variabledeclared forread at
DANGEROUS_BYPASS_RATE_LIMITSbuild, ci, examplepackages/lib/server-only/rate-limit/assert-organisation-rates-and-limits.ts:32
DATABASE_URL_UNPOOLEDbuildpackages/prisma/helper.ts:18
DEBUG_PDF_INSERT— — nowherepackages/lib/server-only/pdf/insert-field-in-pdf-v1.ts:46
NEXT_PRIVATE_DATABASE_REPLICA_URLSbuildpackages/prisma/index.ts:74
NEXT_PRIVATE_DELETED_SERVICE_ACCOUNT_EMAIL— — nowherepackages/lib/server-only/user/service-accounts/deleted-account.ts:8
NEXT_PRIVATE_LEGACY_SERVICE_ACCOUNT_EMAIL— — nowherepackages/lib/server-only/user/service-accounts/legacy-service-account.ts:8
NEXT_PRIVATE_OIDC_PROMPTbuild, examplepackages/auth/server/lib/utils/handle-oauth-authorize-url.ts:70
NEXT_PRIVATE_TURNSTILE_SECRET_KEYbuild, examplepackages/lib/server-only/captcha/verify-captcha.ts:28

Silently empty risk

Read with no fallback and declared nowhere. Nothing raises; the feature is simply off.

DEBUG_PDF_INSERT is read with no fallback and declared nowhere

Nothing raises: the value is simply empty, so whatever depends on it is quietly inactive. This is the shape of bug that reaches production, because the process starts and the tests pass.

fix
Either declare DEBUG_PDF_INSERT, or give the read an explicit default so the behaviour when it is unset is written down.
packages/lib/server-only/pdf/insert-field-in-pdf-v1.ts:46, packages/lib/server-only/pdf/insert-field-in-pdf-v1.ts:46, packages/lib/server-only/pdf/legacy-insert-field-in-pdf.ts:39, packages/lib/server-only/pdf/legacy-insert-field-in-pdf.ts:39

NEXT_PRIVATE_DELETED_SERVICE_ACCOUNT_EMAIL is read with no fallback and declared nowhere

Nothing raises: the value is simply empty, so whatever depends on it is quietly inactive. This is the shape of bug that reaches production, because the process starts and the tests pass.

fix
Either declare NEXT_PRIVATE_DELETED_SERVICE_ACCOUNT_EMAIL, or give the read an explicit default so the behaviour when it is unset is written down.
packages/lib/server-only/user/service-accounts/deleted-account.ts:8, packages/lib/server-only/user/service-accounts/deleted-account.ts:10

NEXT_PRIVATE_LEGACY_SERVICE_ACCOUNT_EMAIL is read with no fallback and declared nowhere

Nothing raises: the value is simply empty, so whatever depends on it is quietly inactive. This is the shape of bug that reaches production, because the process starts and the tests pass.

fix
Either declare NEXT_PRIVATE_LEGACY_SERVICE_ACCOUNT_EMAIL, or give the read an explicit default so the behaviour when it is unset is written down.
packages/lib/server-only/user/service-accounts/legacy-service-account.ts:8, packages/lib/server-only/user/service-accounts/legacy-service-account.ts:10

Missing from the example file risk

Read with no fallback, and absent from the file that tells a new developer what to set.

DATABASE_URL_UNPOOLED is read with no fallback, and .env.example does not mention it

It is declared for build 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.

fix
Add DATABASE_URL_UNPOOLED to .env.example, with a comment saying what it is for.
packages/prisma/helper.ts:18, packages/prisma/helper.ts:19

NEXT_PRIVATE_DATABASE_REPLICA_URLS is read with no fallback, and .env.example does not mention it

It is declared for build 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.

fix
Add NEXT_PRIVATE_DATABASE_REPLICA_URLS to .env.example, with a comment saying what it is for.
packages/prisma/index.ts:74, packages/prisma/index.ts:78

NEXT_PRIVATE_TELEMETRY_HOST is read with no fallback, and .env.example does not mention it

It is declared for build, ci 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.

fix
Add NEXT_PRIVATE_TELEMETRY_HOST to .env.example, with a comment saying what it is for.
packages/lib/server-only/telemetry/telemetry-client.ts:16, docker/build.sh:23, docker/buildx-and-push.sh:29

NEXT_PRIVATE_TELEMETRY_KEY is read with no fallback, and .env.example does not mention it

It is declared for build, ci 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.

fix
Add NEXT_PRIVATE_TELEMETRY_KEY to .env.example, with a comment saying what it is for.
packages/lib/server-only/telemetry/telemetry-client.ts:15, docker/build.sh:22, docker/buildx-and-push.sh:28

Declared, read by nothing note

Setting it has no effect, which is worse than useless: it reads as a working control.

E2E_TEST_AUTHENTICATE_USERNAME is declared but nothing reads it

Declared for build, example. No read of this name appears anywhere in the source, so setting it has no effect - which is worse than useless, because it reads as a working control.

fix
Delete it, or say in a comment what reads it, if something outside this repository does.
.env.example:229, turbo.json:39

E2E_TEST_AUTHENTICATE_USER_EMAIL is declared but nothing reads it

Declared for build, example. No read of this name appears anywhere in the source, so setting it has no effect - which is worse than useless, because it reads as a working control.

fix
Delete it, or say in a comment what reads it, if something outside this repository does.
.env.example:230, turbo.json:39

E2E_TEST_AUTHENTICATE_USER_PASSWORD is declared but nothing reads it

Declared for build, example. No read of this name appears anywhere in the source, so setting it has no effect - which is worse than useless, because it reads as a working control.

fix
Delete it, or say in a comment what reads it, if something outside this repository does.
.env.example:231, turbo.json:39

Where each required variable is declared

One column per place this repository configures itself. A gap in a column is a way of running it that is missing a value.
variableexamplelocalciprodbuildany
NEXT_PRIVATE_ENCRYPTION_KEYyesyesnoyesyesno
NEXT_PRIVATE_SIGNING_CSC_OAUTH_CLIENT_IDyesnononoyesno
NEXT_PRIVATE_SIGNING_CSC_OAUTH_CLIENT_SECRETyesnononoyesno
NEXT_PRIVATE_SIGNING_CSC_PROVIDER_BASE_URLyesnononoyesno
NEXT_PUBLIC_DISABLE_EMAIL_PASSWORD_SIGNINyesyesnoyesyesno
NEXT_PUBLIC_DISABLE_EMAIL_PASSWORD_SIGNUPyesyesnoyesyesno
NEXT_PUBLIC_DISABLE_GOOGLE_SIGNINyesyesnoyesyesno
NEXT_PUBLIC_DISABLE_GOOGLE_SIGNUPyesyesnoyesyesno
NEXT_PUBLIC_DISABLE_MICROSOFT_SIGNINyesyesnoyesyesno
NEXT_PUBLIC_DISABLE_MICROSOFT_SIGNUPyesyesnoyesyesno
NEXT_PUBLIC_DISABLE_OIDC_SIGNINyesyesnoyesyesno
NEXT_PUBLIC_DISABLE_OIDC_SIGNUPyesyesnoyesyesno
DANGEROUS_BYPASS_RATE_LIMITSyesnoyesnoyesno
DATABASE_URL_UNPOOLEDnonononoyesno
DEBUG_PDF_INSERTnononononono
NEXT_PRIVATE_DATABASE_REPLICA_URLSnonononoyesno
NEXT_PRIVATE_DELETED_SERVICE_ACCOUNT_EMAILnononononono
NEXT_PRIVATE_LEGACY_SERVICE_ACCOUNT_EMAILnononononono
NEXT_PRIVATE_OIDC_PROMPTyesnononoyesno
NEXT_PRIVATE_TURNSTILE_SECRET_KEYyesnononoyesno
118 optional settings, with the default the code falls back to
variabledefaultdeclared forread at
DOCUMENSO_DISABLE_TELEMETRY—build, examplepackages/lib/server-only/telemetry/telemetry-client.ts:17
GOOGLE_VERTEX_API_KEY—build, examplepackages/lib/utils/env.ts:62
GOOGLE_VERTEX_LOCATION—build, examplepackages/lib/server-only/ai/google.ts:7
GOOGLE_VERTEX_PROJECT_ID—build, examplepackages/lib/utils/env.ts:62
INNGEST_EVENT_KEY—buildpackages/lib/jobs/client/inngest.ts:26
INTERNAL_FORCE_JSON_LOGGER——packages/lib/utils/logger.ts:9
INTERNAL_OVERRIDE_LICENSE_SERVER_URL——packages/lib/server-only/license/license-client.ts:19
NEXT_DEBUG——packages/lib/utils/debugger.ts:17
NEXT_DEBUG_AUTH——packages/lib/utils/debugger.ts:7
NEXT_DEBUG_JOB——packages/lib/utils/debugger.ts:8
NEXT_DEBUG_MIDDLEWARE——packages/lib/utils/debugger.ts:9
NEXT_PRIVATE_ALLOWED_SIGNUP_DOMAINS—build, example, localpackages/lib/constants/auth.ts:81
NEXT_PRIVATE_BROWSERLESS_URL—buildpackages/lib/server-only/htmltopdf/get-audit-logs-pdf.ts:32
NEXT_PRIVATE_BULLMQ_CONCURRENCY—buildpackages/lib/jobs/client/bullmq.ts:58
NEXT_PRIVATE_DATABASE_URL—any, build, example, prodpackages/prisma/helper.ts:4
NEXT_PRIVATE_DIRECT_DATABASE_URL—any, build, example, prodpackages/prisma/helper.ts:10
NEXT_PRIVATE_DOCUMENSO_LICENSE_KEY—build, examplepackages/lib/server-only/telemetry/telemetry-client.ts:13
NEXT_PRIVATE_DOCUMENT_CONVERSION_PASSWORD——packages/lib/constants/document-conversion.ts:42
NEXT_PRIVATE_DOCUMENT_CONVERSION_TIMEOUT_MS——packages/lib/constants/document-conversion.ts:58
NEXT_PRIVATE_DOCUMENT_CONVERSION_URL——packages/lib/utils/env.ts:55
NEXT_PRIVATE_DOCUMENT_CONVERSION_USERNAME——packages/lib/constants/document-conversion.ts:41
NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY—build, example, local, prodpackages/lib/constants/crypto.ts:5
NEXT_PRIVATE_GOOGLE_CLIENT_ID—build, example, local, prodpackages/lib/utils/env.ts:64
NEXT_PRIVATE_GOOGLE_CLIENT_SECRET—build, example, local, prodpackages/lib/utils/env.ts:64
NEXT_PRIVATE_INNGEST_APP_ID—buildpackages/lib/jobs/client/inngest.ts:25
NEXT_PRIVATE_INNGEST_EVENT_KEY—build, examplepackages/lib/jobs/client/inngest.ts:26
NEXT_PRIVATE_INTERNAL_WEBAPP_URL—build, example, prodpackages/lib/constants/app.ts:60
NEXT_PRIVATE_JOBS_PROVIDER—build, examplepackages/lib/jobs/client/client.ts:14
NEXT_PRIVATE_LOGGER_FILE_PATH—build, examplepackages/lib/utils/logger.ts:16
NEXT_PRIVATE_MAILCHANNELS_API_KEY—build, example, local, prodpackages/email/mailer.ts:59
NEXT_PRIVATE_MAILCHANNELS_DKIM_DOMAIN—build, example, local, prodpackages/email/transports/mailchannels.ts:85
NEXT_PRIVATE_MAILCHANNELS_DKIM_PRIVATE_KEY—build, example, local, prodpackages/email/transports/mailchannels.ts:87
NEXT_PRIVATE_MAILCHANNELS_DKIM_SELECTOR—build, example, local, prodpackages/email/transports/mailchannels.ts:86
NEXT_PRIVATE_MAILCHANNELS_ENDPOINT—build, example, local, prodpackages/email/mailer.ts:60
NEXT_PRIVATE_MICROSOFT_CLIENT_ID—build, examplepackages/lib/utils/env.ts:66
NEXT_PRIVATE_MICROSOFT_CLIENT_SECRET—build, examplepackages/lib/utils/env.ts:66
NEXT_PRIVATE_OIDC_CLIENT_ID—build, examplepackages/lib/utils/env.ts:69
NEXT_PRIVATE_OIDC_CLIENT_SECRET—build, examplepackages/lib/utils/env.ts:70
NEXT_PRIVATE_OIDC_PROVIDER_LABEL—build, examplepackages/lib/utils/env.ts:73
NEXT_PRIVATE_OIDC_SKIP_VERIFY—build, examplepackages/auth/server/config.ts:50
NEXT_PRIVATE_OIDC_WELL_KNOWN—build, examplepackages/lib/utils/env.ts:68
NEXT_PRIVATE_PLAIN_API_KEY—build, examplepackages/lib/plain/client.ts:5
NEXT_PRIVATE_REDIS_PREFIX—build, examplepackages/lib/jobs/client/bullmq.ts:47
NEXT_PRIVATE_REDIS_URL—build, examplepackages/lib/jobs/client/bullmq.ts:41
NEXT_PRIVATE_RESEND_API_KEY—build, example, local, prodpackages/email/mailer.ts:66
NEXT_PRIVATE_SES_ACCESS_KEY_ID—examplepackages/ee/server-only/lib/create-email-domain.ts:14
NEXT_PRIVATE_SES_REGION—examplepackages/ee/server-only/lib/create-email-domain.ts:16
NEXT_PRIVATE_SES_SECRET_ACCESS_KEY—examplepackages/ee/server-only/lib/create-email-domain.ts:15
NEXT_PRIVATE_SHOW_NEW_ACCOUNT_EMAIL_WARNING—examplepackages/lib/utils/sender-trust.ts:21
NEXT_PRIVATE_SIGNING_CSC_SIGNATURE_LEVEL—build, examplepackages/lib/constants/app.ts:143
NEXT_PRIVATE_SIGNING_GCLOUD_APPLICATION_CREDENTIALS_CONTENTS—build, example, prodpackages/signing/transports/google-cloud.ts:54
NEXT_PRIVATE_SIGNING_GCLOUD_HSM_CERT_CHAIN_CONTENTS—build, example, prodpackages/signing/transports/google-cloud.ts:7
NEXT_PRIVATE_SIGNING_GCLOUD_HSM_CERT_CHAIN_FILE_PATH—build, example, prodpackages/signing/transports/google-cloud.ts:8
NEXT_PRIVATE_SIGNING_GCLOUD_HSM_KEY_PATH—build, example, prodpackages/signing/transports/google-cloud.ts:47
NEXT_PRIVATE_SIGNING_GCLOUD_HSM_PUBLIC_CRT_FILE_CONTENTS—build, example, prodpackages/signing/transports/google-cloud.ts:19
NEXT_PRIVATE_SIGNING_GCLOUD_HSM_PUBLIC_CRT_FILE_PATH—build, example, prodpackages/signing/transports/google-cloud.ts:20
NEXT_PRIVATE_SIGNING_GCLOUD_HSM_SECRET_MANAGER_CERT_PATH—build, example, prodpackages/signing/transports/google-cloud.ts:31
NEXT_PRIVATE_SIGNING_LOCAL_FILE_CONTENTS—build, example, prodpackages/signing/transports/local.ts:6
NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH—build, ci, example, local, prodpackages/signing/transports/local.ts:12
NEXT_PRIVATE_SIGNING_PASSPHRASE—build, example, local, prodpackages/signing/transports/local.ts:38
NEXT_PRIVATE_SIGNING_REASON—examplepackages/lib/constants/app.ts:103
NEXT_PRIVATE_SIGNING_TIMESTAMP_AUTHORITY—build, example, prodpackages/lib/constants/app.ts:102
NEXT_PRIVATE_SIGNING_TRANSPORT—build, example, prodpackages/lib/utils/env.ts:58
NEXT_PRIVATE_SMTP_APIKEY—build, example, local, prodpackages/email/mailer.ts:78
NEXT_PRIVATE_SMTP_APIKEY_USER—build, example, local, prodpackages/email/mailer.ts:87
NEXT_PRIVATE_SMTP_FROM_ADDRESS—build, example, local, prodpackages/lib/constants/email.ts:3
NEXT_PRIVATE_SMTP_FROM_NAME—build, example, local, prodpackages/lib/constants/email.ts:4
NEXT_PRIVATE_SMTP_HOST—build, example, local, prodpackages/email/mailer.ts:78
NEXT_PRIVATE_SMTP_PASSWORD—build, example, local, prodpackages/email/mailer.ts:101
NEXT_PRIVATE_SMTP_PORT—build, example, local, prodpackages/email/mailer.ts:84
NEXT_PRIVATE_SMTP_SECURE—build, example, local, prodpackages/email/mailer.ts:85
NEXT_PRIVATE_SMTP_SERVICE—build, example, localpackages/email/mailer.ts:104
NEXT_PRIVATE_SMTP_TRANSPORT—build, example, local, prodpackages/email/mailer.ts:54
NEXT_PRIVATE_SMTP_UNSAFE_IGNORE_TLS—build, example, localpackages/email/mailer.ts:97
NEXT_PRIVATE_SMTP_USERNAME—build, example, local, prodpackages/email/mailer.ts:98
NEXT_PRIVATE_STRIPE_API_KEY—build, example, prodpackages/lib/server-only/stripe/index.ts:6
NEXT_PRIVATE_STRIPE_WEBHOOK_SECRET—build, example, prodpackages/ee/server-only/stripe/webhook/handler.ts:31
NEXT_PRIVATE_TELEMETRY_HOST—build, cipackages/lib/server-only/telemetry/telemetry-client.ts:16
NEXT_PRIVATE_TELEMETRY_KEY—build, cipackages/lib/server-only/telemetry/telemetry-client.ts:15
NEXT_PRIVATE_UPLOAD_ACCESS_KEY_ID—build, example, local, prodpackages/lib/universal/upload/providers/s3-provider.ts:14
NEXT_PRIVATE_UPLOAD_AZURE_ACCOUNT_KEY——packages/lib/universal/upload/providers/azure-blob-provider.ts:22
NEXT_PRIVATE_UPLOAD_AZURE_ACCOUNT_NAME——packages/lib/universal/upload/providers/azure-blob-provider.ts:21
NEXT_PRIVATE_UPLOAD_AZURE_CONTAINER——packages/lib/universal/upload/providers/azure-blob-provider.ts:23
NEXT_PRIVATE_UPLOAD_AZURE_ENDPOINT——packages/lib/universal/upload/providers/azure-blob-provider.ts:27
NEXT_PRIVATE_UPLOAD_BUCKET—build, example, local, prodpackages/lib/universal/upload/providers/s3-provider.ts:53
NEXT_PRIVATE_UPLOAD_DISTRIBUTION_DOMAIN—buildpackages/lib/universal/upload/providers/s3-provider.ts:75
NEXT_PRIVATE_UPLOAD_ENDPOINT—build, example, local, prodpackages/lib/universal/upload/providers/s3-provider.ts:17
NEXT_PRIVATE_UPLOAD_FORCE_PATH_STYLE—build, example, local, prodpackages/lib/universal/upload/providers/s3-provider.ts:18
NEXT_PRIVATE_UPLOAD_REGION—build, example, local, prodpackages/lib/universal/upload/providers/s3-provider.ts:19
NEXT_PRIVATE_UPLOAD_SECRET_ACCESS_KEY—build, example, local, prodpackages/lib/universal/upload/providers/s3-provider.ts:14
NEXT_PRIVATE_USE_LEGACY_SIGNING_SUBFILTER—build, example, prodpackages/lib/constants/app.ts:57
NEXT_PRIVATE_USE_PLAYWRIGHT_PDF——packages/lib/constants/app.ts:100
NEXT_PRIVATE_WEBHOOK_SSRF_BYPASS_HOSTS—build, examplepackages/lib/server-only/webhooks/assert-webhook-url.ts:37
NEXT_PUBLIC_AI_FEATURES_ENABLED——packages/lib/constants/app.ts:91
NEXT_PUBLIC_BASE_PATH—buildapps/remix/react-router.config.ts:10
NEXT_PUBLIC_CONTENT_IMAGE_SIZE_UPLOAD_LIMIT——packages/lib/constants/envelope-content.ts:3
NEXT_PUBLIC_DISABLE_OIDC_AUTO_REDIRECT—build, example, local, prodpackages/lib/constants/auth.ts:28
NEXT_PUBLIC_DISABLE_SIGNIN—build, example, local, prodpackages/lib/constants/auth.ts:181
NEXT_PUBLIC_DISABLE_SIGNUP—build, example, local, prodpackages/lib/constants/auth.ts:166
NEXT_PUBLIC_DOCUMENT_CONVERSION_ENABLED——packages/lib/constants/document-conversion.ts:20
NEXT_PUBLIC_DOCUMENT_SIZE_UPLOAD_LIMIT—build, example, local, prodpackages/lib/constants/app.ts:5
NEXT_PUBLIC_FEATURE_BILLING_ENABLED—build, example, prodpackages/lib/constants/app.ts:62
NEXT_PUBLIC_GOOGLE_SSO_ENABLED——packages/lib/constants/embed-auth.ts:65
NEXT_PUBLIC_IMPRINT_URL——packages/lib/constants/app.ts:54
NEXT_PUBLIC_IS_DOCUMENSO_CLOUD——packages/lib/constants/app.ts:70
NEXT_PUBLIC_MICROSOFT_SSO_ENABLED——packages/lib/constants/embed-auth.ts:66
NEXT_PUBLIC_OIDC_PROVIDER_LABEL——packages/lib/constants/embed-auth.ts:68
NEXT_PUBLIC_OIDC_SSO_ENABLED——packages/lib/constants/embed-auth.ts:67
NEXT_PUBLIC_POSTHOG_KEY—build, example, local, prodpackages/lib/constants/feature-flags.ts:5
NEXT_PUBLIC_PRIVACY_POLICY_URL——packages/lib/constants/app.ts:52
NEXT_PUBLIC_SIGNING_CONTACT_INFO—build, example, prodpackages/lib/constants/app.ts:46
NEXT_PUBLIC_SIGNING_TRANSPORT_IS_CSC——packages/lib/constants/app.ts:119
NEXT_PUBLIC_SUPPORT_EMAIL——packages/lib/constants/app.ts:75
NEXT_PUBLIC_TERMS_OF_SERVICE_URL——packages/lib/constants/app.ts:49
NEXT_PUBLIC_TURNSTILE_SITE_KEY—build, exampleapps/remix/app/components/forms/signin.tsx:98
NEXT_PUBLIC_UPLOAD_TRANSPORT—build, example, local, prodpackages/api/v1/implementation.ts:226
NEXT_PUBLIC_USE_INTERNAL_URL_BROWSERLESS—build, example, local, prodpackages/lib/constants/app.ts:77
NEXT_PUBLIC_WEBAPP_URLhttp://localhost:3000build, example, prodpackages/app-tests/playwright.config.ts:44

What this report could not see

Stated plainly, because a configuration report that hides its blind spots is worse than none.
1 read use a name the tool cannot seeThe variable is looked up through a value computed at runtime, so its name is not in the source. Those variables cannot appear in any list here, and the declared-but-unread list below may name one of them. Nothing else in the report is affected.
whole families of variables are consumed by a loopThe code iterates over the environment and takes everything with a given prefix, so every matching name is read whether or not it appears in the source. Names under these prefixes are therefore never reported as unread: NEXT_PUBLIC_.
a compose service loads an env file wholesaleVariables arriving through `env_file:` are whatever that file contains at run time. Files loaded this way: docker/testing/../../.env.example.

More measured notes on coding agents: alexenabled.github.io