More debugging
This commit is contained in:
parent
d796341758
commit
d7f6cf439e
|
@ -23,6 +23,8 @@ export default defineNuxtRouteMiddleware((to, from) => {
|
|||
|
||||
if (!customDomainUsed()) return
|
||||
|
||||
console.info('loadedConfig',useRuntimeConfig())
|
||||
console.log(useRequestHeaders(),customDomainHeaderName)
|
||||
const customDomainHeaderValue = useRequestHeaders()[customDomainHeaderName]
|
||||
if (!customDomainHeaderValue || customDomainHeaderValue !== getDomain(getHost())) {
|
||||
// If custom domain header doesn't match, redirect
|
||||
|
|
Loading…
Reference in New Issue