404 page not found nextJS

Hello @detosk, kindly note the build settings for Next.js below

The typical build settings are as follows. They differ depending on how your site is generated.

  • For apps that use server-side rendering and Next.js Runtime:
    • Build command: next build
    • Publish directory: .next
  • For apps that use static HTML export:
    • Build command: next build && next export
    • Publish directory: out

Note that If you are deploying from a Monorepo or a sub-directory, kindly make sure you set the base directory when you are deploying the Next.js site.

Base directory

The base directory setting prompts our buildbots to change to the specified directory to detect dependencies and perform caching during the build process. It’s useful for building from a monorepo or subdirectory.

For more information about deploying sites from monorepos or sub-directories, kindly visit the link below

Hope this helps. Thanks.