Open rks118 opened 3 months ago
Unfortunately, netlify build
followed by netlify deploy
does not work for Next.js sites (due to the way the Next Runtime manipulates the build output). Please run netlify deploy --build
to deploy the site successfully.
Yes.
I had run netlify build
before netlify deploy
Local build (
netlify build
) will output_next
in.next
, but disappear immediately.As a result, the website could not find js/css/image resources after I deployed(
netlify deploy --prod
) it.Screen Record:
https://github.com/netlify/next-runtime/assets/106944652/6e7b0c11-38ad-417b-9a03-2986709567eb
netlify.toml
: