From d7f6cf439ef4292ad0ef7918a19abea8cfc1dfa2 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Tue, 16 Jan 2024 10:47:09 +0100 Subject: [PATCH] More debugging --- client/middleware/custom-domain.global.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/middleware/custom-domain.global.js b/client/middleware/custom-domain.global.js index 7ee96d5..e16f38d 100644 --- a/client/middleware/custom-domain.global.js +++ b/client/middleware/custom-domain.global.js @@ -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