honojs / middleware

monorepo for Hono third-party middleware/helpers/wrappers
https://hono.dev
481 stars 175 forks source link

@hono/qwik-city on Cloudflare Pages? #406

Open dolsem opened 9 months ago

dolsem commented 9 months ago

Is it possible to use @hono/qwik-city in a Cloudflare Pages project? Does it work with @hono/vite-cloudflare-pages? I feel like I've tried everything, but I cannot figure out how to make these two plugins work with each other.

yusukebe commented 9 months ago

Hi @dolsem

I'm sure you can do it, but @hono/qwik-city is not complete and I cannot support it.

dolsem commented 9 months ago

Do you mean you cannot support @hono/qwik-city or just the Cloudflare Pages integration? If you're planning to finish @hono/qwik-city, how long do you think it will take?

yusukebe commented 9 months ago

Do you mean you cannot support @hono/qwik-city or just the Cloudflare Pages integration?

"Cloudflare Paages Integration". But, actually, I don't have time to make @hono/qwik-city and the priority is low. So, I want someone's help!

PatrickJS commented 2 months ago

@yusukebe I can update it. we're using the code as a starting point for our Prod app (only a few things needed to be updated in the code)

yusukebe commented 2 months ago

Hi @PatrickJS

Great. Can you create a PR (though it's good you'll wait for announcements from Cloudflare today!)?

PatrickJS commented 2 months ago

yeah, I updated the qwik middleware you made. I think it's better if we want to wait for the vite 6 "environments" api changes to get into qwik then it will be even simpler

yusukebe commented 2 months ago

@PatrickJS

Ideally, it's great that we will have a Vite plugin for developing Qwik with Hono and adapters for Cloudflare Pages, etc. It's like "hono-remix-adapter" recently I made: https://github.com/yusukebe/hono-remix-adapter

I've struggled for a few hours to find a good solution, but I can't find it.

I am waiting for your idea!