NuxtJs SSR deployment on Cloudflare Workers

Viewed 703

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!

2 Answers

I know it is not quite the same, but you can achieve Nuxt SSR with Vercel. Still achieving the serverless functionality for it.

Related