DiscoverThe Loop Tech - VuejsNuxt build vs Nuxt Generate -What is the difference?
Nuxt build vs Nuxt Generate -What is the difference?

Nuxt build vs Nuxt Generate -What is the difference?

Update: 2024-06-11
Share

Description

In the nuxt docs for Cloudflare deployment (https://nuxt.com/deploy/cloudflare), it mentions two options of nuxt build or nuxt generate. It says:


"To leverage server-side rendering on the edge, set the build command to: nuxt build vs To statically generate your website, set the build command to: nuxt generate"


What are the pros and cons to each approach here? Is it as simple as SSR vs SPA? Will it matter if for example I choose nuxt build for SSR but have areas in my app that are [ClientOnly] ?




Blog

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Nuxt build vs Nuxt Generate -What is the difference?

Nuxt build vs Nuxt Generate -What is the difference?

Leamsigc