Skip to content

Commit

Permalink
Update .changeset/tidy-carrots-jump.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
ematipico and sarah11918 authored Nov 21, 2023
1 parent 56f5e3c commit 85957c0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .changeset/tidy-carrots-jump.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ export default defineConfig({
})
```

When this routing strategy is enabled and you run `astro build` command, the URLs emitted by `getAbsoluteLocaleUrl` and `getAbsoluteLocaleUrlList` will be different:
With `routingStrategy: "domain"` configured, the URLs for your built site, including the URLs emitted by `getAbsoluteLocaleUrl()` and `getAbsoluteLocaleUrlList()`, will follow the pattern set for each locale individually.

- `/fr/about` will become `https://fr.example.com/about`;
- `/es/about` will become `https://example.es/about`;
- `/en/about` will **stay** as is because we haven't configured any domain;
For any `locales` not configured in `domains`, the fallback URLs created will follow `prefix-other-locales`, and create a `/[locale]/` path for all non-default languages.

For the above configuration:

- The file `/fr/about.astro` will create the URL `https://fr.example.com/about`;
- The file `/es/about.astro` will create the URL `https://example.es/about`;
- the file `/ja/about/astro` will create the URL `https://example.com/ja/about`.
- The file `/en/about.astro` will create the URL `https://example.com/about`.

0 comments on commit 85957c0

Please sign in to comment.