File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ TanStack Start automatically loads environment files in this order:
9898.env # Default variables (commit to git)
9999` ` `
100100
101+ > [! TIP ]
102+ > When using the Cloudflare Vite plugin , set ` CLOUDFLARE_ENV ` to ensure Wrangler loads the correct environment
103+ >
104+ > ` ` ` bash
105+ > # .env.development
106+ > CLOUDFLARE_ENV=development
107+ > ` ` `
108+ >
109+ > Otherwise , the variables defined in your ` .env.<environment> ` files may not be read or injected into ` process.env `
110+
101111### Example Setup
102112
103113** .env ** (committed to repository ):
Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ TanStack Start automatically loads environment files in this order:
9898.env # Default variables (commit to git)
9999` ` `
100100
101+ > [! TIP ]
102+ > When using the Cloudflare Vite plugin , set ` CLOUDFLARE_ENV ` to ensure Wrangler loads the correct environment
103+ >
104+ > ` ` ` bash
105+ > # .env.development
106+ > CLOUDFLARE_ENV=development
107+ > ` ` `
108+ >
109+ > Otherwise , the variables defined in your ` .env.<environment> ` files may not be read or injected into ` process.env `
110+
101111### Example Setup
102112
103113** .env ** (committed to repository ):
You can’t perform that action at this time.
0 commit comments