Closed jamiehaywood closed 1 day ago
Hi @jamiehaywood
Have you tried to use the adapter
?
https://github.com/honojs/vite-plugins/tree/main/packages/dev-server#adapter-1
It will load bindings and environment variables from wrangler.toml
.
I think we can do it with the adapter
feature. Closing this.
Currently I have a rudimentary function called
getWranglerEnv
that reads the env from thewrangler.toml
and adds it to the env of the honox dev server. This is a proposal to add this as a plugin.