huijiewei / resolid

使用 Remix 驱动的全栈网站,展示使用现代 Web 技术构建高性能、可扩展和用户友好的 Web 应用程序的最佳实践。
https://resolid.tech
MIT License
6 stars 0 forks source link

[@resolid/remix-plugins/node-hono] Feature: Custom Hono server #2

Open 2dragonly opened 5 days ago

2dragonly commented 5 days ago

I finally able to use Hono on vercel, it's only work when using @resolid/remix-plugins/node-hono 😭

can you add feature on Hono preset to be able to add custom hono server? I want to be able to add/use a middleware on Hono server, because remix.handler.ts can't do much, It can only use context..

2dragonly commented 5 days ago

Also, Hono preset only works on vite:build, the hono server doesn't run on vite:dev.. If I use @hono/vite-dev-server with custom hono server it runs, but it's just in development. Because, resolid hono preset have own server setup with remix.handler.ts 😢 It will not overwrite the resolid hono server with my custom server.

huijiewei commented 4 days ago

Resolid just uses hono as a forwarder. There is no plan to customize hono for now. Thank you for your feedback. I am also waiting for remix to support middleware.