From 481508b88c50c009c8d887720ac89ea083ccf346 Mon Sep 17 00:00:00 2001 From: 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 Date: Wed, 3 Sep 2025 16:28:16 +0200 Subject: [PATCH] fix --- app/pages/index.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/pages/index.vue b/app/pages/index.vue index 32282bd..733e6e8 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -52,9 +52,8 @@ definePageMeta({ // This is an example of inline middleware middleware: async nuxtApp => { - const host = useRequestURL().origin - console.log(useRequestURL()) - const res = await $fetch(host + '/api/status') + const host = useRequestURL().host + const res = await $fetch('https://' + host + '/api/status') if (res.status === 'ready') { navigateTo(host, { external: true }) return false;