Index route (pages/index.js) is not built in production #16639
Unanswered
marcusnjones
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I'm running Next.js in a
node:12
Docker container. I'm noticing that my index page (/
orpages/index.js
) is not being generated during production builds. It is however being generated during development builds. I've searched Google and other discussion posts under this repo for the source of my issue to no avail.My production environment (
NODE_ENV=production
) is being started withnext start
. My development environment (NODE_ENV=development
) is being started withnext dev
(NODE_OPTIONS='--inspect=0.0.0.0:9229'
).FWIW I'm able to run my app on my host machine in production mode without issue.
My code can be found here: https://github.com/marcusnjones/react-ab/tree/add-nextjs
Any suggestions what I might need to change?
Beta Was this translation helpful? Give feedback.
All reactions