robisim74/qwik-speak

Static site generation

ThuKieuIC2 opened this issue · 2 comments

Hello @robisim74,

I am using Qwind template it has static generated index.html, it is very useful deployed on CloudFlare Pages.
After using Qwik-Speak and move routes/index.tsx into routes/[...lang]/index.tsx I cannot get the static generated index.html in output build /dist directory.
Could you please help on this issue?

Hi @ThuKieuIC2 , please read the docs: https://robisim74.gitbook.io/qwik-speak/library/adapters#static-site-generation-ssg

Did you add onStaticGenerate on your pages?

Oh no, you save my life. I am crazily happy. It works well on Cloudflare now after I apply your advice.
Thank you very very much!

Now I am waiting for the routing fix.