How to source process.env in monorepo in a worker?
I have a simple email worker. My registry imported from another package is erroring by not finding the env vars that are being parsed
I am running the script in package.json
"dev:email": "dotenv -e ../../.env -- bun run wrangler dev -c src/cloudflare/email/wrangler.jsonc",
I can confirm that dotenv is picking up the env file

3 Replies
Ok - since this is running on wrangler local... maybe it needs .dev.vars ? How do i source that from the root in a monorepo?
I am not sure you can...
I am adding .dev.vars at the same level as each wrangler config
ugh that is so annyoing