Closed sliktrik closed 4 years ago
package.json
{
"name": "heroku-nextjs",
"version": "1.0.0",
"description": "Deploy Next.js server-side React apps to Heroku",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start -p $PORT"
},
"engines": {
"node": "10"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mars/heroku-nextjs.git"
},
"keywords": [
"react",
"ssr",
"server-side-rendering"
],
"author": "Mars Hall",
"license": "MIT",
"bugs": {
"url": "https://github.com/mars/heroku-nextjs/issues"
},
"homepage": "https://github.com/mars/heroku-nextjs#readme",
"dependencies": {
"next": "^9.0.6",
"react": "^16.9.0",
"react-dom": "^16.9.0"
}
}
The free dyno is idling until a request comes in. If you want to avoiding the app temporarily shutting down like that, upgrade to a Hobby dyno or better.
Hello
I've just attempted to deploy a new copy of https://github.com/mars/heroku-nextjs to heroku and got the following error
ive then set the config
heroku config:set JS_RUNTIME_TARGET_BUNDLE=/app/.next/static/chunks/*.js
and still get the following...
any ideas as to what im doing wrong?
Thanks in advance