More debugging

This commit is contained in:
Julien Nahum 2024-01-16 10:47:09 +01:00
parent d796341758
commit d7f6cf439e
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ export default defineNuxtRouteMiddleware((to, from) => {
if (!customDomainUsed()) return if (!customDomainUsed()) return
console.info('loadedConfig',useRuntimeConfig())
console.log(useRequestHeaders(),customDomainHeaderName)
const customDomainHeaderValue = useRequestHeaders()[customDomainHeaderName] const customDomainHeaderValue = useRequestHeaders()[customDomainHeaderName]
if (!customDomainHeaderValue || customDomainHeaderValue !== getDomain(getHost())) { if (!customDomainHeaderValue || customDomainHeaderValue !== getDomain(getHost())) {
// If custom domain header doesn't match, redirect // If custom domain header doesn't match, redirect