Rendering Modes

Universal

mode: 'universal': Isomorphic application (server-side rendering or static sites).

nuxt.config.js
export default {
  mode: 'universal' // default universal
}
You do not need to add this to your nuxt config in order for universal mode to be applied as the default mode is universal.

SPA

mode: 'spa': No server-side rendering (only client-side navigation)

You can use the mode property to change the default nuxt mode for your project:

nuxt.config.js
export default {
  mode: 'spa' // default universal
}

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!

On this page