Add custom domain support

This commit is contained in:
Julien Nahum
2024-01-12 15:43:28 +01:00
parent a0513c4458
commit ea7041be28
6 changed files with 108 additions and 18 deletions

View File

@@ -14,3 +14,7 @@ export default async (to, from, next) => {
function getDomain (url) {
return (new URL(url)).hostname
}
function isCustomDomain (url) {
return getDomain(url) !== getDomain(window.config.app_url)
}