From 391120f719ba044adc502c2fa3ae90d5ebbf4e50 Mon Sep 17 00:00:00 2001 From: myftija Date: Tue, 14 Oct 2025 17:14:21 +0200 Subject: [PATCH] docs(build-server): adjust build env vars section Adds a clarification about the env var prefix stripping. --- docs/github-integration.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/github-integration.mdx b/docs/github-integration.mdx index 7fd0f67f52..f4becb0b4f 100644 --- a/docs/github-integration.mdx +++ b/docs/github-integration.mdx @@ -94,9 +94,13 @@ Changes to repository access will be reflected immediately in your Trigger.dev p ## Environment variables at build time You can expose environment variables during the build and deployment process by prefixing them with `TRIGGER_BUILD_`. +In the build server, the `TRIGGER_BUILD_` prefix is stripped from the variable name, i.e., `TRIGGER_BUILD_MY_TOKEN` is exposed as `MY_TOKEN`. + Build extensions will also have access to these variables. -Build environment variables only apply to deployments in the environment you set them in. + + Build environment variables only apply to deployments in the environment you set them in. + Learn more about managing [environment variables](/deploy-environment-variables).