Skip to content

Commit

Permalink
fix: disable ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
lemueldls committed Jan 25, 2025
1 parent f9450da commit 4234298
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/pages/space/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function screenshot() {
}
function copyScreenshot() {
navigator.clipboard.write([
window.navigator.clipboard.write([
new ClipboardItem({ "image/png": screenshotBlob.value! }),
]);
}
Expand Down
7 changes: 4 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const apiBaseUrl = new URL(import.meta.env.NUXT_PUBLIC_API_BASE_URL || siteUrl);

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
devtools: { enabled: !platform },
// devServer: { https: true },
future: { compatibilityVersion: 4 },
Expand All @@ -23,7 +24,7 @@ export default defineNuxtConfig({
esbuild: { options: { target: "esnext" } },
// moduleSideEffects: ["@material/web"],
prerender: {
routes: ["/", "/space", "/login"],
routes: ["/", "/calendar", "/space"],
crawlLinks: true,
},
// experimental: { openAPI: true, websocket: true },
Expand All @@ -39,7 +40,7 @@ export default defineNuxtConfig({
plugins: [wasm()],
},
// devServer: { https: true },
// vue: { compilerOptions: { isCustomElement: (tag) => tag.startsWith("md-") } },
vue: { compilerOptions: { isCustomElement: (tag) => tag.startsWith("md-") } },
// routeRules: {
// "/**": { ssr: false },
// "/splashscreen": { ssr: !!platform, static: false },
Expand Down Expand Up @@ -110,5 +111,5 @@ export default defineNuxtConfig({
langDir: "locales",
baseUrl: siteUrl,
},
ssrLit: { litElementPrefix: ["md-"] },
// ssrLit: { litElementPrefix: ["md-"] },
});

0 comments on commit 4234298

Please sign in to comment.