`environment` is for old Service Environments which haven't been around for awhile
environment is for old Service Environments which haven't been around for awhileenvironment[env.foo]) are purely Wrangler abstractions and as you've seen, are actually separate Workers with different names.
vite build --watch my first terminal and wrangler pages dev .svelte-kit/cloudflare --live-reload in my second terminal. 
wrangler dev, is the dev.host config property (and the rest of request forwarding) only respected in --remote mode? Digging through the wrangler source, that seems to be the case, and wrangler is returning 404 without even trying the upstream server specified in the confignode-gyp issuenode_modules/wrangler/node_modules/better-sqlite3python3 installed and available - if you run it via terminal, it should enter into a python promptnpx wrangler deploy --dry-run --outdir dist --minify=true or npx wrangler deploy --dry-run --outdir dist I can clearly identify dead code that isn't needed for the worker. I've set all my ts modules to "esnext", but still no good. I also don't see any way to adust the esbuild config. Any suggestions?... right in the middle. I don't think it is related to nested objects, but could benpm run build:watch and npm run wrangler in 2 terminals. The first one build the app and create an empty .trigger file in the working directory. The other one watches for .trigger files (made up extension) and restarts wrangler then delete the .trigger file. [env.foo]vite build --watchwrangler pages dev .svelte-kit/cloudflare --live-reloaddev.hostnode-gypnode_modules/wrangler/node_modules/better-sqlite3python3npx wrangler deploy --dry-run --outdir dist --minify=truenpx wrangler deploy --dry-run --outdir dist...npm run build:watchnpm run wranglerconsole.log(JSON.stringify(authObject));{"adapter":{},"sessionCookie":{"name":"auth_sessio…ubdomains":[],"experimental":{"debugMode":false}}// package.json
"scripts": {
"build:watch": "nodemon --watch src -e ts,svelte --exec \"vite build; touch reload.trigger\"",
"wrangler": "nodemon -e trigger --exec \"rm reload.trigger; wrangler pages dev .svelte-kit/cloudflare \""
},