.dev.vars doesn't work in the v7 cloudflare examples... #12369
Unanswered
alindsay55661
asked this question in
Q&A
Replies: 1 comment
-
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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