You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to deploy manually with netlify deploy I get the error:
Error: No such directory /Users/gaberagland/projects/next-netlify/out! Did you forget to run a build?
It appears this is because next build stores all build files in the .next directory, not out. The out directory is only generated when running next export, but the readme specifically says not to use next export.
hey @gragland@saidattax. are you running netlify build or netlify deploy --build before netlify deploy or netlify deploy --prod? this step actually runs the build process locally (including running the plugin). netlify build or netlify deploy --build is a prerequisite to deploying locally when using any plugin. if this ends up fixing your problem, please do let us know how we can improve our README/docs so this is clearer!
Describe the bug
When attempting to deploy manually with
netlify deploy
I get the error:It appears this is because
next build
stores all build files in the.next
directory, notout
. Theout
directory is only generated when runningnext export
, but the readme specifically says not to usenext export
.To Reproduce
Steps to reproduce the behavior:
next build
npm run build
netlify deploy
Versions
If you're using the CLI to build
If you're using file-based installation
The text was updated successfully, but these errors were encountered: