fix
This commit is contained in:
1 parent
481508b88c
commit
c05d98f333
1 file changed
+1
-1
+1
-1
@@ -53,7 +53,7 @@ definePageMeta({
|
||||
// This is an example of inline middleware
|
||||
middleware: async nuxtApp => {
|
||||
const host = useRequestURL().host
|
||||
const res = await $fetch('https://' + host + '/api/status')
|
||||
const res = await $fetch('http://localhost/api/status')
|
||||
if (res.status === 'ready') {
|
||||
navigateTo(host, { external: true })
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user