DiamondDragon
DiamondDragon
Explore posts from servers
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
but i will make note of that. I do think a solution that "just works" or follows standard practice would be great tho.
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
I think that should be added to docs, esp.since its something someone more beginner wouldn't know how to do
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
And its annoying to have to have multiple .dev.vars in a setup where you have multiple workers across a repo in directories . Then you have to manually make sure your env vars match
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
Yeah I have never come across an explaination haha. It's really frustrating from a DX perspective.. I feel like every month I end up running into a roadblock, only to realize some time later I don't have .dev.vars but its completely buried in the docs and rarely mentioned as an aside "hey! don't forget process.env won't be picked up unless you define .dev.vars when running locally". If i could ask anything of cloudflare... is get rid of .dev.vars and just pick up .env automatically and allow us to pass a cli flag and/or wrangler.json property to pass in the env file.
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
@Hard@Work , question - why does wrangler rely on .dev.vars instead of just picked up .env by default (which seems to be an ecosystem wide standard thing to do?
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
I see, ok i think i understand a little better. We still need a .dev.vars.. the new update allows picking up process.env as long as .dev.vars is defined
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
is this true (re: explicity defining... the process.env support implies you don't have to explicity define)? wouldn't it pick up process.env (i assume wrangler.json needs to be sibling of .env?) https://developers.cloudflare.com/changelog/2025-03-11-process-env-support/
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
not in that screenshot but i filed an issue showing the issue in a worker (see step 4) https://github.com/cloudflare/workers-sdk/issues/8913
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
No description
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
No description
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
No description
27 replies
CDCloudflare Developers
Created by Silvan on 3/24/2025 in #workers-and-pages-discussions
.dev.vars end up in server bundle
Hi - could you assist with this? https://discord.com/channels/595317990191398933/1359940532083622018 Is it possible to configure the path of .dev.vars? I have a monorepo with some small workers nested in sub packages/directories, so i'd rather not have to copy maintain many duplicate .dev.var files colocated to each wrangler.json. ideally i could just point to a root .dev.vars... (although it is annoying that wrangler local does not use process.env)
27 replies
CDCloudflare Developers
Created by DiamondDragon on 4/10/2025 in #workers-help
How to source process.env in monorepo in a worker?
ugh that is so annyoing
4 replies
CDCloudflare Developers
Created by DiamondDragon on 4/10/2025 in #workers-help
How to source process.env in monorepo in a worker?
Ok - since this is running on wrangler local... maybe it needs .dev.vars ? How do i source that from the root in a monorepo?
4 replies
DTDrizzle Team
Created by DiamondDragon on 3/30/2025 in #help
Buffer is not defined - drizzle-arktype
7 replies
CDCloudflare Developers
Created by DiamondDragon on 4/8/2025 in #workers-and-pages-discussions
shoutout for tanstack start
i meant it as it would be great to see an integration mentioned @jason
3 replies