如何使用 Now.sh 进行部署?

使用 now.sh 部署,推荐的 package.json 配置如下:

  1. {
  2. "name": "my-app",
  3. "dependencies": {
  4. "nuxt": "latest"
  5. },
  6. "scripts": {
  7. "dev": "nuxt",
  8. "build": "nuxt build",
  9. "start": "nuxt start"
  10. }
  11. }

运行 now 即可完成部署!

提示: 建议将 .nuxt 加入到 .npmignore.gitignore 中去。