Skip to content

Commit

Permalink
fix: try to fix non-precached-url error
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Dec 25, 2024
1 parent 0d366ce commit 37ff5d0
Show file tree
Hide file tree
Showing 3 changed files with 430 additions and 131 deletions.
7 changes: 7 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export default defineNuxtConfig({
dirs: ['./components/home'],
},

nitro: {
prerender: {
routes: ['/'],
},
},

// Disable SSR when building
ssr: false,

Expand Down Expand Up @@ -90,6 +96,7 @@ export default defineNuxtConfig({
base: '/',
injectRegister: 'auto',
registerType: 'autoUpdate',
registerWebManifestInRouteRules: true,
scope: '/',
manifest: {
background_color: '#ffffff',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@vite-pwa/nuxt": "^0.10.6",
"@vueuse/nuxt": "^12.2.0",
"floating-vue": "^5.2.2",
"nuxt": "^3.14.1592"
"nuxt": "^3.15.0"
},
"devDependencies": {
"@iconify-json/fa-brands": "^1.2.1",
Expand Down
Loading

0 comments on commit 37ff5d0

Please sign in to comment.