Reputation: 31
I'm working on a Nuxt project and would like to deploy it on Cloudflare Workers with its SSR feature, not a static site. I could find a solution for static site deployment below.
wrangler init --site
And in the wrangler.toml
account_id = "<account-id>"
name = "nuxt-cloudflare-workers"
type = "webpack"
route = ""
workers_dev = true
zone_id = ""
[site]
bucket = "dist"
entry-point = "workers-site"
And then
npm run generate
wrangler publish
But this simply deploys the Nuxt static site to the Cloudflare Workers. Is there anyone who knows how to deploy Nuxt SSR on Cloudflare workers? Thanks in advance!
Upvotes: 3
Views: 2033
Reputation: 118
I know it is not quite the same, but you can achieve Nuxt SSR with Vercel. Still achieving the serverless functionality for it.
Upvotes: 0
Reputation: 46761
This feature will be available with Nuxt Nitro (Nuxt3) but is not available as of right now.
So you cannot use Nuxt SSR on cloudflare workers as of today.
This event may be interesting to follow: https://twitter.com/danielcroe/status/1400115389854593029?s=19
Upvotes: 2