More debugging

This commit is contained in:
Julien Nahum 2024-01-16 10:47:09 +01:00
父節點 d796341758
當前提交 d7f6cf439e
共有 1 個檔案被更改,包括 2 行新增0 行删除

查看文件

@ -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