小编mr *_*ora的帖子

无法将下一个 js 部署到 azure

我正在尝试将我的 NEXTJS 应用程序部署到 azure。我创建了一个包含安装了 Node 的 linux 操作系统的 web 应用程序。我的package.json看起来像这样。

{
  "name": "frontend",
  "version": "1.0.0",
  "description": "This package contains all necessary depenencies for frontned",
  "main": "index.js",
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start -p $PORT",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "masnad",
  "license": "ISC",
  "dependencies": {
    "@zeit/next-css": "^1.0.1",
    "next": "^8.0.3",
    "react": "^16.8.3",
    "react-dom": "^16.8.3"
  }
}
Run Code Online (Sandbox Code Playgroud)

我首先创建了一个空的 web 应用程序,然后使用了部署服务 kudu,我将我的代码从本地推送到了 azure。

推送到 azure 时的 git 日志如下所示

remote: ..............................................................
remote: npm …
Run Code Online (Sandbox Code Playgroud)

javascript azure node.js reactjs next.js

5
推荐指数
2
解决办法
5669
查看次数

标签 统计

azure ×1

javascript ×1

next.js ×1

node.js ×1

reactjs ×1