Has anyone done static content generation + SSR in Cloudflare Pages
I have an app where I want to create a blog with dynamic language routing using SCG by precomipiling the static pages and their translations.
I am getting errors configuring it "invalid prerender config" and it talks about how to setup static cloudflare pages which is a completely different app setup.
Wondering how to mix the two into a single app?
Thanks!
3 Replies
I can help with cloudflare SSR or SSG app.
I did so using nuxt. I solved it by using a Drone CI pipeline which first renders the content with preset =
cloudflare_static and extracts the worker from it; then prerenders with preset = static and copies the static files. Both, the static files and the worker, will then be bundled in the dist folder and deployed using wrangler. /e see my blog entry concerning that (via google translate): https://www-tino--kuptz-de.translate.goog/development/javascript/vue-js/70393/cf-pages-nuxt-teilweise-statisch-teilweise-dynamisch/?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=de&_x_tr_pto=wappwww.tino-kuptz.de
CF Pages, nuxt, teilweise statisch, teil... — www.tino-kuptz.de
Blog über alles, was aus mindestens einem Bit besteht.
I’ll take a look