From f8ab14cc297cd82d1c15606d2c0a15fc8436b784 Mon Sep 17 00:00:00 2001 From: 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 Date: Wed, 3 Sep 2025 16:26:31 +0200 Subject: [PATCH] test --- .gitignore | 2 ++ app/pages/index.vue | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef1ab11 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +api/vendor/* + diff --git a/app/pages/index.vue b/app/pages/index.vue index b84a817..32282bd 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -53,6 +53,7 @@ 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') if (res.status === 'ready') { navigateTo(host, { external: true }) @@ -82,13 +83,6 @@ const status = ref('starting') const POLL_MS = 5000 const ALLOWED_REDIRECTS = new Set(['/', '/login', '/signin']) -function sanitizeRedirect(raw) { - if (typeof raw !== 'string') return '/login' - if (raw.startsWith('http://') || raw.startsWith('https://')) return '/login' - if (!raw.startsWith('/')) return '/login' - const pathOnly = raw.split('?')[0] - return ALLOWED_REDIRECTS.has(pathOnly) ? raw : '/login' -} async function checkStatus () { try {