#Can you deploy Nuxt as SSR on Cloudflare pages?

14 messages · Page 1 of 1 (latest)

quaint talon
#

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?

trail patrol
#

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/

quaint talon
#

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.

trail patrol
#

@quaint talon 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

trail patrol