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
That, the code in the search results is not good. Many of these were created when there was no hono/adapter yet, and also assumed Cloudflare Workers. We should have used env().
If
c.env
is intended to be for uniform environment access then we need some way to provide values toc.env
when using the node-server.I read issue #72, but the discussion there seems to miss the point. The problem isn't reading the environment, it's providing it.
Take a look at this search for c.env on the middleware repo.
The decision tree "If on cloudflare workers use
c.env
, else if on NodeJS useprocess.env
" doesn't seem to work with shared middleware.How is shared middleware supposed to work if
c.env
andprocess.env
remain entirely separate?The text was updated successfully, but these errors were encountered: