Bug report
Describe the bug
I use the experimental unstable_notFound feature on SSG/ISG pages and it fails in production mode when the custom-404 page uses getStaticProps.
To Reproduce
Repository: next.js-bug-not-found
Steps to reproduce the behavior:
yarn build && yarn start
- Go to http://localhost:3000
- See Internal Server Error
Expected behavior
Displaying "not-found" with 404 status code.
Screenshots

System information
- OS:macOS
- Browser (if applies): chrome
- Version of Next.js: 9.5.6-canary.13
- Version of Node.js: v10.22.1
Additional context
Works fine in dev mode.