Skip to content

Docs: Generating a sitemap with next exportΒ #70670

@alextse

Description

@alextse

What is the documentation issue?

Using the provided example, getting the following error with a SSG setup.

Error: Page "/sitemap.xml/[[...metadata_id]]/route" is missing exported function "generateStaticParams()", which is required with "output: export" config.

Is there any context that might help us understand?

Next.js version: 14.2.13

Is generating sitemap.xml even possible with SSG?

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationRelated to Next.js' official documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions