.dev.vars doesn't work in the v7 cloudflare examples... #12369
Unanswered
alindsay55661
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I ended up doing this in my vite config... not sure if this is the "proper" way to inject secrets in dev mode... vitePluginViteNodeMiniflare({
entry: './workers/app.ts',
miniflareOptions: (options) => {
options.compatibilityDate = '2024-11-18'
options.compatibilityFlags = ['nodejs_compat']
options.bindings = {
...options.bindings,
...envBindings, // an object containing env secrets (read from process.env)
}
},
}), |
Beta Was this translation helpful? Give feedback.
0 replies
-
This PR for the v7 cloudflare example may be helpful: Modify to use cloudflareDevProxy and load contents of wrangler.toml |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I got my site up and running with v7, but I can't figure out how to get wrangler to pick up my
.dev.vars
file which it did perfectly with the previousremix vite:dev
version... How can I inject secrets into the cloudflare development environment?Beta Was this translation helpful? Give feedback.
All reactions