We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bdd29a commit 3e4217fCopy full SHA for 3e4217f
1 file changed
middleware/mammoth-redirect.global.ts
@@ -1,8 +1,15 @@
1
export default defineNuxtRouteMiddleware(() => {
2
+ console.log('defineNuxtRouteMiddleware');
3
+
4
if (import.meta.client) return
5
6
+ console.log('import.meta.client', import.meta.client);
7
8
9
const host = useRequestHeaders(["host"])?.host
- if (host?.includes("mammoth.celenium.io")) {
10
+ console.log('host', host);
11
12
+ if (host === "mammoth.celenium.io") {
13
return navigateTo("https://celenium.io/", { redirectCode: 301 })
14
}
15
})
0 commit comments