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().
Activity
yusukebe commentedon Feb 8, 2024
Hi @KGZM
We should use
env()inhono/adapter.That, the code in the search results is not good. Many of these were created when there was no
hono/adapteryet, and also assumed Cloudflare Workers. We should have usedenv().thecotne commentedon May 23, 2024
@yusukebe should
c.envbe deprecated and all first party packages migrated to usehono/adapter?yusukebe commentedon Jun 3, 2024
@thecotne
No. We have to recommend using
c.envfor the Cloudflare Workers/Pages. It is now very familiar to the user. We don't need to stop using it.Manouchehri commentedon Jan 28, 2025
@yusukebe How do I use
import { env } from 'hono/adapter'when I am usingOpenAPIHono?yusukebe commentedon Jan 29, 2025
@Manouchehri
Does this not work?