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>
|
<template>
|
||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<ClientOnly>
|
|
||||||
<Component is="style">
|
<Component is="style">
|
||||||
{{ customCss.value }}
|
{{ customCss.value }}
|
||||||
</Component>
|
</Component>
|
||||||
</ClientOnly>
|
|
||||||
<NuxtPwaAssets />
|
<NuxtPwaAssets />
|
||||||
<ClientOnly>
|
|
||||||
<NuxtLayout>
|
<NuxtLayout>
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
<ConfirmationModal />
|
<ConfirmationModal />
|
||||||
<!-- pointer-events-auto fixes https://github.com/unovue/shadcn-vue/issues/462 -->
|
<!-- pointer-events-auto fixes https://github.com/unovue/shadcn-vue/issues/462 -->
|
||||||
<Toaster class="pointer-events-auto" />
|
<Toaster class="pointer-events-auto" />
|
||||||
</ClientOnly>
|
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export default defineNuxtConfig({
|
||||||
"shadcn-nuxt",
|
"shadcn-nuxt",
|
||||||
"@nuxtjs/color-mode",
|
"@nuxtjs/color-mode",
|
||||||
],
|
],
|
||||||
|
ssr: false,
|
||||||
vue: {
|
vue: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
isCustomElement: (tag) => tag === "iconify-icon",
|
isCustomElement: (tag) => tag === "iconify-icon",
|
||||||
|
|
@ -240,7 +241,7 @@ export default defineNuxtConfig({
|
||||||
keepalive: true,
|
keepalive: true,
|
||||||
},
|
},
|
||||||
nitro: {
|
nitro: {
|
||||||
preset: "bun",
|
preset: "static",
|
||||||
minify: true,
|
minify: true,
|
||||||
prerender: {
|
prerender: {
|
||||||
failOnError: true,
|
failOnError: true,
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,7 @@ import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert";
|
||||||
import { Button } from "~/components/ui/button";
|
import { Button } from "~/components/ui/button";
|
||||||
import { NuxtLink } from "#components";
|
import { NuxtLink } from "#components";
|
||||||
|
|
||||||
const {
|
const host = new URL(useBaseUrl().value).host;
|
||||||
public: { apiHost },
|
|
||||||
} = useRuntimeConfig();
|
|
||||||
|
|
||||||
const host = new URL(apiHost).host;
|
|
||||||
const instance = useInstanceFromClient(new Client(new URL(useBaseUrl().value)));
|
const instance = useInstanceFromClient(new Client(new URL(useBaseUrl().value)));
|
||||||
const { error, error_description } = useUrlSearchParams();
|
const { error, error_description } = useUrlSearchParams();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue