From 452adcf735fcec1857cc6c6797ce68080ff4e42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Fri, 1 Dec 2023 16:15:43 +0100 Subject: [PATCH] docs: add link to onDuplicateRoutes page (#9602) --- website/docs/guides/creating-pages.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/creating-pages.mdx b/website/docs/guides/creating-pages.mdx index ce32424a25..c256716078 100644 --- a/website/docs/guides/creating-pages.mdx +++ b/website/docs/guides/creating-pages.mdx @@ -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.