forked from urvishpatelce/lxd-app
fix
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user