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
fix: use process.env if context.env isn't defined in hono (#92)
It looks like context.env is only defined in Cloudflare Workers. https://hono.dev/docs/api/context#env
When the serve method from hono is used in vercel, context.env is undefined which causes an error.
Fixed the issue by checking if context.env is defined and falling back to process.env if it isn't.
Fixes: #91
0 commit comments