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
Omnislash
Omnislash3mo ago
I think it goes like this : https://nuxt.com/deploy/cloudflare
Nuxt
Deploy Nuxt to Cloudflare
Deploy your Nuxt Application to Cloudflare infrastructure.
Omnislash
Omnislash3mo ago
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/
MinecraftStorage
MinecraftStorageOP2mo ago
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.
Omnislash
Omnislash2mo ago
@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"
Omnislash
Omnislash2mo ago
No description
Omnislash
Omnislash2mo ago
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
Want results from more Discord servers?
Add your server