pwa adjustments

This commit is contained in:
2023-07-06 13:11:14 +02:00
parent 9c9d447765
commit f970d968c2
3 changed files with 5 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# https://kit.svelte.dev/docs/single-page-apps#apache # https://kit.svelte.dev/docs/single-page-apps#apache
RewriteBase / RewriteBase /
RewriteRule ^200\.html$ - [L] RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /200.html [L] RewriteRule . /index.html [L]

View File

@@ -5,13 +5,7 @@ import preprocess from "svelte-preprocess"
const config = { const config = {
preprocess: [preprocess()], preprocess: [preprocess()],
kit: { kit: {
inlineStyleThreshold: 8192, adapter: adapter(),
paths: {
relative: false,
},
adapter: adapter({
fallback: "200.html",
}),
}, },
} }

View File

@@ -9,9 +9,10 @@ export default defineConfig({
sveltekit(), sveltekit(),
SvelteKitPWA({ SvelteKitPWA({
kit: { kit: {
adapterFallback: "/200.html",
trailingSlash: "always", trailingSlash: "always",
}, },
scope: "/",
base: "/",
includeAssets: ["favicon.png"], includeAssets: ["favicon.png"],
manifest: { manifest: {
name: "dot i/o", name: "dot i/o",
@@ -25,13 +26,6 @@ export default defineConfig({
}, },
], ],
}, },
base: "/",
workbox: {
modifyURLPrefix: {
"": "/",
"./": "/",
},
},
}), }),
], ],
}) })