Could you make it work for nextjs-express example?
rajaraodv opened this issue · 2 comments
rajaraodv commented
I am trying to get next.js+express app from next.js examplesworking on heroku but it doesn't. I keep getting module 'next' not found
. Wondering what I need to change to make it work.
mars commented
Curious question indeed! I was able to make it work by copying the custom server example out to it's own repo, then following those Production Deployment steps on the README.
Here's that example revised for Heroku:
https://github.com/mars/heroku-nextjs-custom-server-express
…and a sample deployment:
https://nextjs-custom-server-express.herokuapp.com
mars commented
I hope that new example is useful. Let me know how it goes 😄