docs: add link to onDuplicateRoutes page (#9602)

This commit is contained in:
Sébastien Lorber 2023-12-01 16:15:43 +01:00 committed by GitHub
parent bfd2cdbd65
commit 452adcf735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,4 +137,4 @@ All JavaScript/TypeScript files within the `src/pages/` directory will have corr
### Duplicate Routes {#duplicate-routes}
You may accidentally create multiple pages that are meant to be accessed on the same route. When this happens, Docusaurus will warn you about duplicate routes when you run `yarn start` or `yarn build`, but the site will still be built successfully. The page that was created last will be accessible, but it will override other conflicting pages. To resolve this issue, you should modify or remove any conflicting routes.
You may accidentally create multiple pages that are meant to be accessed on the same route. When this happens, Docusaurus will warn you about duplicate routes when you run `yarn start` or `yarn build` (behavior configurable through the [`onDuplicateRoutes`](../api/docusaurus.config.js.mdx#onDuplicateRoutes) config), but the site will still be built successfully. The page that was created last will be accessible, but it will override other conflicting pages. To resolve this issue, you should modify or remove any conflicting routes.