Skip to content

Instantly share code, notes, and snippets.

@openhubdev
Last active April 5, 2021 16:03
Show Gist options
  • Save openhubdev/b93cd6b2f35e2a319fc4997668a409a2 to your computer and use it in GitHub Desktop.
Save openhubdev/b93cd6b2f35e2a319fc4997668a409a2 to your computer and use it in GitHub Desktop.

Revisions

  1. openhubdev revised this gist Apr 5, 2021. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions domain-routing-next10.js
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,19 @@
    //next.config.js
    module.exports = {
    i18n: {
    locales: ['en-US', ‘fr’, 'ko'],
    locales: ['en-US', 'fr', 'ko'],
    domains: [
    {
    domain: yourdomain.com',
    domain: 'yourdomain.com',
    defaultLocale: 'en-US'
    },
    {
    domain: yourdomain.fr',
    domain: 'yourdomain.fr',
    defaultLocale: 'fr'
    }
    ,
    ,
    {
    domain: yourdomain.kr',
    domain: 'yourdomain.kr',
    defaultLocale: 'ko'
    }
    ]
  2. openhubdev created this gist Apr 5, 2021.
    21 changes: 21 additions & 0 deletions domain-routing-next10.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    //next.config.js
    module.exports = {
    i18n: {
    locales: ['en-US', ‘fr’, 'ko'],
    domains: [
    {
    domain: yourdomain.com',
    defaultLocale: 'en-US'
    },
    {
    domain: yourdomain.fr',
    defaultLocale: 'fr'
    }
    ,
    {
    domain: yourdomain.kr',
    defaultLocale: 'ko'
    }
    ]
    }
    }