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.
Wrangler should be able to support all binding types not just wasm and kv. In order to support future bindings and make bindings generation simpler, we should try to treat all bindings the same (kv, wasm, secrets, etc.).
The text was updated successfully, but these errors were encountered:
I think #217 is a fine approach, but only adds support for wasm bindings, and there are many other binding types. Right now, kv_namespaces are treated as attributes of a project, but it might make more sense to have a list of bindings as an attribute of project including all wasm modules, KV namespaces, secret bindings, and others. I'm just getting into this code, so I could be off-base, but we currently generate and send bindings at publish time, but I think bindings are a good abstraction to use directly as an attribute of the Project struct. So instead of having a kv_namespaces and whatever future binding types get supported by Wrangler as attributes of a project, their bindings would get generated at Project init (read from config).
The webpack backend currently auto-generate the wasm binding, I don't see why we should ask the user to indicate it and in the future we could imagine the same for kv-namespaces. However, in #215 the kv config is still possible in wrangler.toml.
Other bindings are different and, as far as I can tell, undocumented publicly (intentionally I suppose). I would suggest to wait until we have a use-case.
Wrangler should be able to support all binding types not just wasm and kv. In order to support future bindings and make bindings generation simpler, we should try to treat all bindings the same (kv, wasm, secrets, etc.).
The text was updated successfully, but these errors were encountered: