From 02872517b80e63fdf542d20539c13e918ff963e8 Mon Sep 17 00:00:00 2001 From: Brandon Romano Date: Mon, 8 Nov 2021 12:25:19 -0500 Subject: [PATCH] Include www subdomain example in Domain Routing (#30487) * Include www subdomain example in Domain Routing * Update comment Co-authored-by: jj@jjsweb.site --- docs/advanced-features/i18n-routing.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/advanced-features/i18n-routing.md b/docs/advanced-features/i18n-routing.md index cf9a6fdbaf95b..8272276b47418 100644 --- a/docs/advanced-features/i18n-routing.md +++ b/docs/advanced-features/i18n-routing.md @@ -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', }, @@ -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`