Environments best practices
With workers I can have a "default" environment (placing things in the root of the
wrangler.jsonc
, and n environments such as development
. What's better: having the "default" be the production one with the development one being specified as a separate env (requiring me to add -e development
when using that), or having the "default" one be the development, with the prod being its own env?1 Reply
my two cents are that having the "default" being the development one wil give the workers.dev domain a nicer look (instead of having
product-development.myorg.workers.dev
) since i won't even allow workers.dev on the production environment
also, when deleting, i would have to type out "production" so yknow, there's that