Can you deploy Nuxt as SSR on Cloudflare pages?
I tried deploying Nuxt on Cloudflare, but the SSR seems not to work. UseFetch doesn't work on the server, but only on client. So the question is, does Cloudflare support ssr or is it only for client side apps?
6 Replies
I think it goes like this : https://nuxt.com/deploy/cloudflare
if you don't use github, you just have to deploy clasically and use wrangler
I was just trying out SSR on cloudflage pages yesterday actually, looks fine for google as far as I can tell
Note : wrangler pages deploy dist/ is kind of a mistake (to me)
Cloudflare advises to install it locally to the project, so it would be npm wrangler pages deploy dist/
Thank you so much
Did you get the website running in the SSR mode on Cloudflare pages?
It seems Cloudflare pages is only for staticly generated (pre generated) nuxt projects. UseFetch does not work on the server and instead gets called on the client.
@MinecraftStorage funny question, it's what I have to check in the following couple weeks
In the link I gave you they say to leverage SSR you have to use "nuxt build"
so you should indeed have SSR without too much trouble
so far I used generate because I wanted static without ssr
wtf no sorry I HAD to try already, the fastest try in my life between two meetings !
I asked to google pages what he was seeing and it was working well