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: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
This commit is contained in:
parent
39faecad93
commit
0589a5e317
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
||||
```ts filename="app/product/sitemap.ts" switcher
|
||||
import { MetadataRoute } from 'next'
|
||||
import { BASE_URL } from '@/app/lib/constants'
|
||||
|
||||
export async function generateSitemaps() {
|
||||
|
|
Loading…
Reference in a new issue