diff --git a/deploy/early-access/reference/builds.md b/deploy/early-access/reference/builds.md index 0348a3900..257ff4495 100644 --- a/deploy/early-access/reference/builds.md +++ b/deploy/early-access/reference/builds.md @@ -36,8 +36,8 @@ A revision goes through these stages before becoming available: downloading dependencies. 4. **Build**: The build command executes (if specified), creating a build artifact that is uploaded to the runtime infrastructure. -5. **Warm up**: A `GET /` request tests that the application boots correctly and - can handle HTTP requests. +5. **Warm up**: The application is booted to check that no errors occur during + startup. 6. **Route**: The global infrastructure is configured to route requests to the new revision based on its timelines. @@ -117,4 +117,20 @@ Environment variables configured for the "Build" context are available during builds, but variables from "Production" or "Development" contexts are not. [Learn more about environment variables](./env-vars-and-contexts/). +The following environment variables are additionally always available during +builds: + +- `CI`: `true` +- `DENO_DEPLOY`: `true` - Indicates that the code is running in Deno Deploy. +- `DENO_DEPLOY_ORGANIZATION_ID`: The ID of the organization that owns the + application. This is a UUID. +- `DENO_DEPLOY_ORGANIZATION_SLUG`: The slug of the organization that owns the + application. This is the human-readable identifier used in URLs that was set + when creating the organization. +- `DENO_DEPLOY_APPLICATION_ID`: The ID of the application. This is a UUID. +- `DENO_DEPLOY_APPLICATION_SLUG`: The slug of the application. This is the + human-readable identifier used in URLs that was set when creating the + application, or changed later in the application settings. +- `DENO_DEPLOY_BUILD_ID`: The ID of the currently running build. + Builders have 8 GB of storage available during the build process. diff --git a/deploy/early-access/reference/env-vars-and-contexts.md b/deploy/early-access/reference/env-vars-and-contexts.md index ad3d08b2e..cd2d500d9 100644 --- a/deploy/early-access/reference/env-vars-and-contexts.md +++ b/deploy/early-access/reference/env-vars-and-contexts.md @@ -147,22 +147,20 @@ Environment variables have the following limits: Deno DeployEA provides these predefined environment variables in all contexts: -- `DENO_DEPLOY=1`: Indicates that the application is running in the Deno Deploy - environment. - +- `DENO_DEPLOY`: `true` - Indicates that the code is running in Deno Deploy. +- `DENO_DEPLOY_ORGANIZATION_ID`: The ID of the organization that owns the + application. This is a UUID. +- `DENO_DEPLOY_ORGANIZATION_SLUG`: The slug of the organization that owns the + application. This is the human-readable identifier used in URLs that was set + when creating the organization. +- `DENO_DEPLOY_APPLICATION_ID`: The ID of the application. This is a UUID. +- `DENO_DEPLOY_APPLICATION_SLUG`: The slug of the application. This is the + human-readable identifier used in URLs that was set when creating the + application, or changed later in the application settings. +- `DENO_DEPLOY_BUILD_ID`: The ID of the currently running build. - `DENO_DEPLOYMENT_ID`: A unique identifier representing the entire - configuration set (application ID, revision ID, context, and environment - variables). Changes if any of these components change. - -- `DENO_DEPLOY_ORG_ID`: The ID of the organization the application belongs to. - -- `DENO_DEPLOY_ORG_SLUG`: The slug of the organization the application belongs - to. - -- `DENO_DEPLOY_APP_ID`: The ID of the application. - -- `DENO_DEPLOY_APP_SLUG`: The slug of the application. - + configuration set (application ID, build ID, context, environment variables, + cloud connections, database). Changes if any of these components change. - `DENO_DEPLOY_REVISION_ID`: The ID of the currently running revision. During builds, the environment variable `CI=1` is additionally set.