What files are required for nuxt project deployment?

  • projects done with nuxt require server-rendered deployment which files are required for all files under the project folder? Or do you just need the files under the .nuxt folder to deploy?

the directory of the packaged project.
clipboard.png

  • there is a recommended package.json, on the official website whether to replace the package.json file at the time of project development or the recommended way to write the package file for non-template-created projects.
{
  "name": "my-app",
  "dependencies": {
    "nuxt": "latest"
  },
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start"
  }
}
Mar.22,2021

npm run build
copy .nuxt; static; nuxt.config.js; package.json to server
npm I
npm start

Menu