From 1802d2822985a58fcffaf8bdb7d936f005687afa Mon Sep 17 00:00:00 2001 From: sarah11918 Date: Thu, 1 Feb 2024 15:56:32 +0000 Subject: [PATCH] ci: update reference docs --- .../en/reference/configuration-reference.mdx | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/content/docs/en/reference/configuration-reference.mdx b/src/content/docs/en/reference/configuration-reference.mdx index e72cfee92cade..96d8b81b9a96e 100644 --- a/src/content/docs/en/reference/configuration-reference.mdx +++ b/src/content/docs/en/reference/configuration-reference.mdx @@ -1213,7 +1213,7 @@ See the [Prefetch Guide](/en/guides/prefetch/) for more `prefetch` options and u

-Prioritizes redirects and injected routes equally alongside file-based project routes, following the same [route priority order rules](/en/guides/routing/#route-priority-order) for all routes. +Prioritizes redirects and injected routes equally alongside file-based project routes, following the same [route priority order rules](/en/core-concepts/routing/#route-priority-order) for all routes. This allows more control over routing in your project by not automatically prioritizing certain types of routes, and standardizes the route priority ordering for all routes. @@ -1253,21 +1253,22 @@ Any other locale not configured will default to a localized path-based URL accor export default defineConfig({ site: "https://example.com", output: "server", // required, with no prerendered pages - adapter: node({ - mode: 'standalone', - }), + adapter: node({ + mode: 'standalone', + }), i18n: { defaultLocale: "en", locales: ["en", "fr", "pt-br", "es"], - prefixDefaultLocale: false, - domains: { - fr: "https://fr.example.com", - es: "https://example.es" - }, - experimental: { - i18nDomains: true - } -}) + prefixDefaultLocale: false, + domains: { + fr: "https://fr.example.com", + es: "https://example.es", + }, + }, + experimental: { + i18nDomains: true, + }, +}); ``` Both page routes built and URLs returned by the `astro:i18n` helper functions [`getAbsoluteLocaleUrl()`](/en/guides/internationalization/#getabsolutelocaleurl) and [`getAbsoluteLocaleUrlList()`](/en/guides/internationalization/#getabsolutelocaleurllist) will use the options set in `i18n.domains`.