Tanstack Start + env: Redirected configurations cannot include environments
Hello everyone,
I have been trying to implement environments in my current project running Tanstack Start.
Deployments were working smoothly until I added deployments and I started getting build errors in the cloudflare CD.
Current vite.config.ts:
I followed the directions to handle environments but with no effect:
1. Created a new .env.development containing
CLOUDFLARE_ENV=development and .env.production containing CLOUDFLARE_ENV=production
2. Changed the build script to vite build --mode development
3. Changed the deployment script to npx wrangler --cwd .output deploy
But so far I can't find anything more to fix this issue.
Does anyone have any idea? ❤️0 Replies