Reputation: 253
I'm working on a Nuxt universal app, but some parts of the app should be a SPA, so I'm using ssr: false
in .vue
pages.
What I don't understand is how do I treat those pages in production? Do I have to build them with npm run build
? Currently I am using Nginx to render the Nuxt app.
Upvotes: 1
Views: 1931
Reputation: 46602
What is your target
property looking like? The default is server
.
If target: server
>> nuxt build
If target: static
>> nuxt generate
More details here on all the differences: https://stackoverflow.com/a/63638062/8816585
On top of that, you can totally have a full static build but SPA render only some pages too thanks to exclude
, more info here: https://stackoverflow.com/a/66472634/8816585
Upvotes: 1