Unverified Commit 0589a5e3 authored by Brian Shanley's avatar Brian Shanley Committed by GitHub

Update sitemap.mdx (#65003)

### Improving Documentation

### What?
Improving Documentation

### Why?
missing import of `MetadataRoute` in one of the code examples

### How?
Add the import
Co-authored-by: 's avatarDelba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
parent 39faecad
...@@ -214,6 +214,7 @@ There are two ways you can create multiple sitemaps: ...@@ -214,6 +214,7 @@ There are two ways you can create multiple sitemaps:
For example, to split a sitemap using `generateSitemaps`, return an array of objects with the sitemap `id`. Then, use the `id` to generate the unique sitemaps. For example, to split a sitemap using `generateSitemaps`, return an array of objects with the sitemap `id`. Then, use the `id` to generate the unique sitemaps.
```ts filename="app/product/sitemap.ts" switcher ```ts filename="app/product/sitemap.ts" switcher
import { MetadataRoute } from 'next'
import { BASE_URL } from '@/app/lib/constants' import { BASE_URL } from '@/app/lib/constants'
export async function generateSitemaps() { export async function generateSitemaps() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment