Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/start/framework/react/guide/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ TanStack Start automatically loads environment files in this order:
.env # Default variables (commit to git)
```

> [!TIP]
> When using the Cloudflare Vite plugin, set `CLOUDFLARE_ENV` to ensure Wrangler loads the correct environment
>
> ```bash
> # .env.development
> CLOUDFLARE_ENV=development
> ```
>
> Otherwise, the variables defined in your `.env.<environment>` files may not be read or injected into `process.env`

### Example Setup

**.env** (committed to repository):
Expand Down
10 changes: 10 additions & 0 deletions docs/start/framework/solid/guide/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ TanStack Start automatically loads environment files in this order:
.env # Default variables (commit to git)
```

> [!TIP]
> When using the Cloudflare Vite plugin, set `CLOUDFLARE_ENV` to ensure Wrangler loads the correct environment
>
> ```bash
> # .env.development
> CLOUDFLARE_ENV=development
> ```
>
> Otherwise, the variables defined in your `.env.<environment>` files may not be read or injected into `process.env`

### Example Setup

**.env** (committed to repository):
Expand Down