代码之家  ›  专栏  ›  技术社区  ›  Michal

NextJs 5.0.0 Heroku内部服务器错误

  •  0
  • Michal  · 技术社区  · 8 年前

    以下是我的脚本:

      "scripts": {
        "dev": "node server.js",
        "build": "next build",
        "start": "NODE_ENV=production node server.js",
        "heroku-postbuild": "next build"
      },
    

    这是我的程序文件:

    web: npm start -- --port $PORT
    

    以下是我的配置变量:

    NPM_CONFIG_PRODUCTION=false
    

    enter image description here

    enter image description here

    1 回复  |  直到 8 年前
        1
  •  0
  •   Michal    8 年前

    您必须更新 next 5.0.1-canary.4 这实际上是 nextjs 缺陷