Error AtlasError Documentation and Resolution

Next.js getStaticPaths returned conflicting paths

Conflicting SSG Paths

Next.js found duplicate or overlapping static paths returned by getStaticPaths, which is invalid because every generated page path must be unique.

Conflicting SSG Pathsbuild
Conflicting SSG Paths
  • Two pages resolve to the same generated static path.
  • A catch-all route returns a path that conflicts with a more specific route.
  • getStaticPaths includes duplicate entries for the same URL.
  1. Remove duplicate paths from getStaticPaths output.
  2. Check catch-all and specific routes for overlapping generated URLs.
  3. Ensure each static path is returned by only one page.
Next.js Docs: Conflicting SSG Paths
Next.js Conflicting SSG Paths: causes and fixes | Error Atlas