Skip to content

Commit

Permalink
docs: update the outdated generate sitemaps doc with versioned changes (
Browse files Browse the repository at this point in the history
#73547)

Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
  • Loading branch information
2 people authored and devjiwonchoi committed Dec 9, 2024
1 parent 001fa4c commit 3a387bb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/01-app/03-api-reference/04-functions/generate-sitemaps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ The `generateSitemaps` returns an array of objects with an `id` property.

## URLs

In production, your generated sitemaps will be available at `/.../sitemap/[id].xml`. For example, `/product/sitemap/1.xml`.

In development, you can view the generated sitemap on `/.../sitemap.xml/[id]`. For example, `/product/sitemap.xml/1`. This difference is temporary and will follow the production format.
Your generated sitemaps will be available at `/.../sitemap/[id].xml`. For example, `/product/sitemap/1.xml`.

## Example

Expand Down Expand Up @@ -72,3 +70,10 @@ export default async function sitemap({ id }) {
}))
}
```

## Version History

| Version | Changes |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | --- |
| `v15.0.0` | `generateSitemaps` now generates consistent URLs between development and production |
| `v13.3.2` | `generateSitemaps` introduced. In development, you can view the generated sitemap on `/.../sitemap.xml/[id]`. For example, `/product/sitemap.xml/1`. | |

0 comments on commit 3a387bb

Please sign in to comment.