target 属性
更改默认 nuxt 目标
Nuxt v2.13 及以上的部署目标:
-
类型:
string-
默认值:
server -
可选值:
-
'server':用于服务端渲染 -
'static':用于静态站点
-
-
默认值:
可以在
nuxt.config.js中使用此选项更改项目的默认 nuxt target
有关 target 选项的详细信息,请参阅部署目标文档 。
Edit this page on GitHub
Updated at Tue, Apr 14, 2026