From fc09a175a5a8f41eefbad01bb431ccefa3a07aa6 Mon Sep 17 00:00:00 2001 From: gabaldon Date: Tue, 30 Jul 2024 17:43:12 +0200 Subject: [PATCH 1/2] fix: check if client to get os --- components/sections/CoinSection.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/sections/CoinSection.vue b/components/sections/CoinSection.vue index fd06da63..71644e3e 100644 --- a/components/sections/CoinSection.vue +++ b/components/sections/CoinSection.vue @@ -200,8 +200,10 @@ const size = computed(() => { }) onMounted(async () => { - const latestRelease = await getLatestRelease(window.navigator) - release.value = latestRelease + if (import.meta.client) { + const latestRelease = await getLatestRelease(window.navigator) + release.value = latestRelease + } }) // const { t } = useI18n() From d3d370155825f8ca9d15e2a238d47cc58db414eb Mon Sep 17 00:00:00 2001 From: gabaldon Date: Tue, 30 Jul 2024 17:44:58 +0200 Subject: [PATCH 2/2] fix: update baseurl --- nuxt.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index dc60eada..bc10d53d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -5,7 +5,7 @@ import { languageLocales } from './constants' export default defineNuxtConfig({ ssr: true, app: { - baseURL: '/website/', + baseURL: '/', head: { title: 'Wit/Oracle: The most powerful oracle, provably.', meta: [