Skip to content

Commit

Permalink
Include www subdomain example in Domain Routing (vercel#30487)
Browse files Browse the repository at this point in the history
* Include www subdomain example in Domain Routing

* Update comment

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
BrandonRomano and ijjk authored Nov 8, 2021
1 parent 5f38b18 commit 0287251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/advanced-features/i18n-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ module.exports = {

domains: [
{
// Note: subdomains must be included in the domain value to be matched
// e.g. www.example.com should be used if that is the expected hostname
domain: 'example.com',
defaultLocale: 'en-US',
},
Expand All @@ -122,6 +124,7 @@ module.exports = {
For example if you have `pages/blog.js` the following urls will be available:

- `example.com/blog`
- `www.example.com/blog`
- `example.fr/blog`
- `example.nl/blog`
- `example.nl/nl-BE/blog`
Expand Down

0 comments on commit 0287251

Please sign in to comment.