【问题标题】:NextJs 5.0.0 Heroku Internal Server ErrorNextJs 5.0.0 Heroku 内部服务器错误
【发布时间】:2018-02-09 20:14:47
【问题描述】:

这些是我的脚本:

  "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

【问题讨论】:

    标签: javascript reactjs heroku deployment nextjs


    【解决方案1】:

    您必须将next 更新为5.0.1-canary.4这实际上是一个nextjs 错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-12
      相关资源
      最近更新 更多