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
}

如何提交问题或文档贡献? 在 GitHub 编辑此页面!

On this page