This package makes it possible to configure the Umbraco SiteDomainMapper from appsettings.json instead of in code.
See here for info on what the SiteDomainMapper is used for.
Edit appsettings.json
to add a "DomainMapper" section. Your settings file should look like the below:
"DomainMapper": {
"Sites": [
{
"SiteName": "production",
"Domains": [ "cms.mysite.com", "www.mysite.com", "pre-prod.mysite.com" ]
},
{
"SiteName": "preproduction",
"Domains": [ "mysite-umbraco-alternative.azurewebsites.net", "mysite-web-alternative.azurewebsites.net" ]
},
{
"SiteName": "staging",
"Domains": [ "mysite-umbraco.azurewebsites.net", "mysite-web.azurewebsites.net" ]
},
{
"SiteName": "development",
"Domains": [ "mysite.dev" ]
},
{
"SiteName": "local",
"Domains": [ "localhost:44375" ]
}
],
"Bindings": [
[ "production", "preproduction" ],
[ "staging", "development" ]
]
}