pwa adjustments

This commit is contained in:
2023-07-06 00:24:33 +02:00
parent 0e19b7b0d3
commit 5a7c4df70a
4 changed files with 48 additions and 19 deletions

View File

@@ -3,5 +3,20 @@ import {defineConfig} from "vite"
import {SvelteKitPWA} from "@vite-pwa/sveltekit"
export default defineConfig({
plugins: [sveltekit(), SvelteKitPWA()],
plugins: [
sveltekit(),
SvelteKitPWA({
kit: {
adapterFallback: "/200.html",
trailingSlash: "never",
},
base: "/",
workbox: {
modifyURLPrefix: {
"": "/",
"./": "/",
},
},
}),
],
})