NextJS with Express : copying files to server and running “npm run start” fails
问题 I am creating a NextJS application and I want to copy ONLY the production files to my server and deploy the application. This works perfectly fine when I do NOT use Express, however when i do use Express the app no longer runs on the server as it says it can not find the "pages" directory. Project structure |- .next |- client |- polyfills.js |- components |- CompA.js |- CompB.js |- etc |- node-modules |- ... |- pages |- index.js |- page1.js |- page2.js |- etc |- public |- appIcon.png |-