Skip to content

Commit

Permalink
Merge branch 'main' into feat/esm-2
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn authored Aug 22, 2024
2 parents 881d415 + a43ed9e commit 3d5d575
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Next.js supports providing alternate URLs per language via the [`alternates` ent
<Tabs items={['Shared pathnames', 'Localized pathnames']}>
<Tab>

If you're use the same pathnames for all locales (i.e. you're not using the [`pathnames`](/docs/routing#pathnames) setting), you can assemble the sitemap based on the pathnames that your app supports.
If you're using the same pathnames for all locales (i.e. you're not using the [`pathnames`](/docs/routing#pathnames) setting), you can assemble the sitemap based on the pathnames that your app supports.

```tsx
import {MetadataRoute} from 'next';
Expand Down
4 changes: 0 additions & 4 deletions examples/example-app-router/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export const pathnames = {
'/pathnames': {
en: '/pathnames',
de: '/pfadnamen'
},
'/users/[id]': {
en: '/users/[id]',
de: '/benutzer/[id]'
}
} satisfies Pathnames<typeof locales>;

Expand Down

0 comments on commit 3d5d575

Please sign in to comment.