TanStackT
TanStackโ€ข5mo agoโ€ข
7 replies
uncertain-scarlet

Deploy cloudlfare worker error

I'm trying to deploy my tanstack start app to cloudflare workers. When I deploy with wrangler CLI it works fine, but when I connect my github so that it triggers deploy when I push some code the deploy fails. Here are logs from cloudflare:
21:27:36.092    Using redirected Wrangler configuration.
21:27:36.092     - Configuration being used: ".output/server/wrangler.json"
21:27:36.092     - Original user's configuration: "wrangler.toml"
21:27:36.092     - Deploy configuration file: ".wrangler/deploy/config.json"
21:27:36.097    
21:27:36.148    โœ˜ [ERROR] Processing .output/server/wrangler.json configuration:
21:27:36.148    
21:27:36.148        - Redirected configurations cannot include environments but the following have been found:
21:27:36.149              - develop
21:27:36.149              - production
21:27:36.149      
21:27:36.149      
21:27:36.149          Such configurations are generated by tools, meaning that one of the tools
21:27:36.149          your application is using is generating the incorrect configuration.
21:27:36.149          Report this issue to the tool's author so that this can be fixed there.
21:27:36.149    
21:27:36.149    
21:27:36.160    
21:27:36.160    Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md


as you can see I have two environments in my wrangler.toml:
1. develop
2. production

any idea how to fix it? ๐Ÿ™
Was this page helpful?