mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
refactor: ♻️ Disable SSR, always build as static
This commit is contained in:
parent
650d916062
commit
ca824a2a1a
4
app.vue
4
app.vue
|
|
@ -1,19 +1,15 @@
|
|||
<template>
|
||||
<TooltipProvider>
|
||||
<ClientOnly>
|
||||
<Component is="style">
|
||||
{{ customCss.value }}
|
||||
</Component>
|
||||
</ClientOnly>
|
||||
<NuxtPwaAssets />
|
||||
<ClientOnly>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
<ConfirmationModal />
|
||||
<!-- pointer-events-auto fixes https://github.com/unovue/shadcn-vue/issues/462 -->
|
||||
<Toaster class="pointer-events-auto" />
|
||||
</ClientOnly>
|
||||
</TooltipProvider>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ export default defineNuxtConfig({
|
|||
"shadcn-nuxt",
|
||||
"@nuxtjs/color-mode",
|
||||
],
|
||||
ssr: false,
|
||||
vue: {
|
||||
compilerOptions: {
|
||||
isCustomElement: (tag) => tag === "iconify-icon",
|
||||
|
|
@ -240,7 +241,7 @@ export default defineNuxtConfig({
|
|||
keepalive: true,
|
||||
},
|
||||
nitro: {
|
||||
preset: "bun",
|
||||
preset: "static",
|
||||
minify: true,
|
||||
prerender: {
|
||||
failOnError: true,
|
||||
|
|
|
|||
|
|
@ -6,11 +6,7 @@ import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert";
|
|||
import { Button } from "~/components/ui/button";
|
||||
import { NuxtLink } from "#components";
|
||||
|
||||
const {
|
||||
public: { apiHost },
|
||||
} = useRuntimeConfig();
|
||||
|
||||
const host = new URL(apiHost).host;
|
||||
const host = new URL(useBaseUrl().value).host;
|
||||
const instance = useInstanceFromClient(new Client(new URL(useBaseUrl().value)));
|
||||
const { error, error_description } = useUrlSearchParams();
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue