且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在共享主机上部署 nuxt.js 项目?

更新时间:2023-02-26 22:32:16

npm run build

为 `npm run start` 服务构建文件.看起来您希望它是静态文件,您只需将其上传到托管.所以你应该运行:

Builds files for `npm run start` serving. And looks like you want it to be static files, which you just upload to hosting. So you should run:

npm run generate