Has anyone got hono+nextjs+d1 working
Has anyone got hono+nextjs+d1 working together? i want to use this stack and deploy on cloudflare pages but wanted to know if i will jump into any bottlenecks so i can be aware of.
5 Replies
i have setup my route using hono like this in my nextjs application, but I'm getting error
you need to export method like GET, POST, PATCH, etc. - you can't do a default export for a route handler
oh okay, even if i want to deploy on cloudflare and not on vercel, i will have to export such methods?
yes, it's how nextjs route handlers work
oh gotcha thanks so much 👍