How to run a specific environment while using the vite plugin?

I’ve set my environment variables for "dev" and "production" but i can’t set it to "dev" 😦 I’m using react router, which allows me to forward the --mode arg but not pass an -e to wrangler
1 Reply
Patrick M
Patrick M6mo ago
https://developers.cloudflare.com/workers/vite-plugin/reference/cloudflare-environments/ Sounds like the recommendation is to pass CLOUDFLARE_ENV=dev as an environment variable
Cloudflare Docs
Cloudflare Environments
Using Cloudflare environments with the Vite plugin

Did you find this page helpful?