This commit is contained in:
2025-09-03 16:28:16 +02:00
parent f8ab14cc29
commit 481508b88c

View File

@ -52,9 +52,8 @@
definePageMeta({ definePageMeta({
// This is an example of inline middleware // This is an example of inline middleware
middleware: async nuxtApp => { middleware: async nuxtApp => {
const host = useRequestURL().origin const host = useRequestURL().host
console.log(useRequestURL()) const res = await $fetch('https://' + host + '/api/status')
const res = await $fetch(host + '/api/status')
if (res.status === 'ready') { if (res.status === 'ready') {
navigateTo(host, { external: true }) navigateTo(host, { external: true })
return false; return false;