I had this setup for my nextjs app in netlify to gbuild static websites:
# netlify.toml:
[build]
command = "pnpm run build"
publish = ".next"
package.json:
"scripts": {
"build": "next build",
},
and set env variable: NETLIFY_NEXT_PLUGIN_SKIP: true
I trigger a deployment and got page not found.
I had to revert to the old setup to make this work:
netlify.toml:
[build]
command = "pnpm run build"
publish = "out"
package.json:
"scripts": {
"build": "next build",
},
next.config.js:
const nextConfig = {
output: "export",
trailingSlash: true,
images: {
unoptimized: true,
},
};
Has there been any issue with setting up nextjs applications during the last month? This issue showed up after coming from vacation. It shows that I should have extended my vacation.
Thanks