You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/wrangler/src/environment-variables/factory.ts
+78-69Lines changed: 78 additions & 69 deletions
Original file line number
Diff line number
Diff line change
@@ -2,96 +2,105 @@ import { UserError } from "../errors";
2
2
3
3
/**
4
4
* Environment variables supported by Wrangler for configuration and authentication.
5
-
*
6
-
* ## Authentication & API Configuration
7
-
*
8
-
* - `CLOUDFLARE_ACCOUNT_ID` - Overrides the account ID for API requests. Can also be set in Wrangler config via `account_id` field.
9
-
* - `CLOUDFLARE_API_TOKEN` - API token for authentication. Preferred over API key + email.
10
-
* - `CLOUDFLARE_API_KEY` - Legacy API key for authentication. Requires CLOUDFLARE_EMAIL. It is preferred to use `CLOUDFLARE_API_TOKEN`.
11
-
* - `CLOUDFLARE_EMAIL` - Email address for API key authentication. Used with `CLOUDFLARE_API_KEY`. It is preferred to use `CLOUDFLARE_API_TOKEN`.
12
-
* - `CLOUDFLARE_API_BASE_URL` - Custom API base URL. Defaults to https://api.cloudflare.com/client/v4
13
-
* - `CLOUDFLARE_COMPLIANCE_REGION` - Set to "fedramp_high" for FedRAMP High compliance region. This will update the API/AUTH URLs used to make requests to Cloudflare.
14
-
*
15
-
* ## Development & Local Testing
16
-
*
17
-
* - `WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_*` - Local database connection strings for Hyperdrive development. The * should be replaced with the Hyperdrive binding name in the Worker.
18
-
* - `NO_HYPERDRIVE_WARNING` - Suppress Hyperdrive-related warnings during development.
19
-
* - `WRANGLER_HTTPS_KEY_PATH`/`WRANGLER_HTTPS_CERT_PATH` - Paths to HTTPS private key and certificate files for running the local development server in HTTP mode. Without this Wrangler will generate keys automatically.
20
-
* - `CLOUDFLARE_LOAD_DEV_VARS_FROM_DOT_ENV` - Load development variables from .env files (default: true).
21
-
* - `CLOUDFLARE_INCLUDE_PROCESS_ENV` - Include process.env in development variables (default: false).
0 commit comments