Determine if built by wrangler dev or wrangler deploy
I have a worker which when running locally will proxy to a Vite server, but when deployed will be a Workers Site using kvAssetHandler.
Is there any default way to determine which it was built for? Or do I need to mess with .dev.vars?
0 Replies