-
Notifications
You must be signed in to change notification settings - Fork 1.2k
vite-plugin: secrets store bindings throws Secret "[some secret key]" not found #9006
Copy link
Copy link
Closed
Copy link
Labels
vite-pluginRelating to the `@cloudflare/vite-plugin` packageRelating to the `@cloudflare/vite-plugin` package
Description
Which Cloudflare product(s) does this pertain to?
Vite Plugin
What versions & operating system are you using?
wrangler:4.12.0, @cloudflare/vite-plugin:1.0.8
Please provide a link to a minimal reproduction
https://github.com/woodybriggs/lucky-term-181e
Describe the Bug
Secrets store is unable to find bound secret when using @cloudflare/vite-plugin in development.
I have dug around, and as far as i can get is that the miniflare instance that holds the secret_store does not have a bound store
packages/miniflare/src/workers/secrets-store/secret.worker.ts line:14
this.env.store is an empty KvNamespace; In that the response of this.env.store.list() returns an empty list using vite dev but with wrangler dev it returns the correct list of secrets.
This seems like it could be a miniflare configuration issue that is caused by the vite-plugin.
Please provide any relevant error logs
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
vite-pluginRelating to the `@cloudflare/vite-plugin` packageRelating to the `@cloudflare/vite-plugin` package
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done