i'm building an app with vite (react-router) and a wrangler.jsonc, and... man weird stuff happening.

i'm building an app with vite (react-router) and a wrangler.jsonc, and... man weird stuff happening... i've been trying to deploy with --env staging, and it wasn't finding my env for some reason. and it turns out, it's because there's this file being written to .wrangler/deploy/config.json that has these contents:
{"configPath":"../../build/server/wrangler.json","auxiliaryWorkers":[]}%
which points to build/server/wrangler.json being written during the build process, which is a stripped down version of my wranger.jsonc. what's going on here???
Was this page helpful?