fmiras / next-pkg

Extended Next.js server with pkg support
MIT License
66 stars 11 forks source link

Error on server this distDIr #75

Open ShintaroNippon opened 5 years ago

ShintaroNippon commented 5 years ago

./next-express-bootstrap-boilerplate /snapshot/frontend/node_modules/next-server/dist/server/next-server.js:271 throw new Error(Could not find a valid build in the '${this.distDir}' directory! Try building your app with 'next build' before starting the server.);

ShintaroNippon commented 5 years ago

i solve the issue copying the .next folder to inside of ./dist created by npm run dist

it makes sense ?

thanks in advance

ShintaroNippon commented 5 years ago

Im using this boilerplate

https://github.com/MustansirZia/next-express-bootstrap-boilerplate

i had to copy what is inside of app to outside...

thanks

fabkoh commented 2 years ago

@ShintaroNippon , I am having the same issue. Did the workaround pose any problems during deployment?