More debugging
This commit is contained in:
父節點
d796341758
當前提交
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
|
||||
|
|
|
|||
載入中…
新增問題並參考