Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binding Countries

When this app is installed and configured, render-server will do a redirect to the binding corresponding to the viewer country.

Configuration

Example:

{
  "bindings": [
    {
      "canonicalBaseAddress": "www.store.com/ar",
      "targetCountries": ["AR"]
    },
    {
      "canonicalBaseAddress": "www.store.com/br",
      "targetCountries": ["BR", "*"]
    },
    {
      "canonicalBaseAddress": "www.store.com/co",
      "targetCountries": ["CO", "CH", "PY", "UY"]
    },
    {
      "canonicalBaseAddress": "www.store.com",
      "targetCountries": null
    }
  ]
}

If the request comes from www.store.com it will be redirected to some binding depending on viewer's country (AR => /ar, BR => /br, etc.). If there is no specific binding for viewer's country, it will be redirect to the one registered with wildcard (*), in this case (CX => /br)

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

38 watching

Forks

Releases

Packages

Contributors