Previous set up for nexts app throws page not found message when deploying

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

What’s the site name?

it’s https://dashboards.sdgindex.org/, also the same thing happened in this one: Benin Sustainable Development Report

I’ve routed this to our helpdesk, we’ll follow up via email.

1 Like