I have a custom express server I use to create an api and to host the static content generated by next.js. When I try to build for production, it says:
Error: Could not find a production build in the 'path/to/project/.next' directory. Try building your app with 'next build' before starting the production server.