You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Following docs online to use environments with kv_namespaces specified does not bind the namespace during deployment.
This issue does not occur if you use kv-namspaces with a hyphen instead of an underscore under the environments, but this is not how it is shown in the examples and involved me looking at the codebase to discover this.
Environment
operating system: MacOS & Linux
output of rustc -V: rustc 1.44.1 (c7087fe00 2020-06-17)
output of node -v: v10.16.3
output of wrangler -V: 👷 ✨ wrangler 1.10.1
contents of wrangler.toml:
name = "hello-world-worker"
type = "webpack"
account_id = ""
workers_dev = true
webpack_config = "webpack.config.js"
kv_namespaces = [
{ binding = "KV_STUFF_HERE", id = "", preview_id = "" },
]
[env.production]
name = "hello-world-worker-production"
kv_namespaces = [
{ binding = "KV_STUFF_HERE", id = "", preview_id = "" },
]
Steps to reproduce
wrangler publish --env production
What did you expect to see?
Bindings created for the KV to the worker in the CloudFlare console
What did you see instead?
No bindings created
The text was updated successfully, but these errors were encountered:
great catch @rdaniels6813 - got a PR up for that, should be able to get it in the next release. Like you said, if you use kv-namespaces instead of what's documented it should work for now.
🐛 Bug Report
Following docs online to use environments with kv_namespaces specified does not bind the namespace during deployment.
This issue does not occur if you use kv-namspaces with a hyphen instead of an underscore under the environments, but this is not how it is shown in the examples and involved me looking at the codebase to discover this.
Environment
rustc -V
: rustc 1.44.1 (c7087fe00 2020-06-17)node -v
: v10.16.3wrangler -V
: 👷 ✨ wrangler 1.10.1Steps to reproduce
wrangler publish --env production
What did you expect to see?
Bindings created for the KV to the worker in the CloudFlare console
What did you see instead?
No bindings created
The text was updated successfully, but these errors were encountered: