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
RewriteBase /
RewriteRule ^200\.html$ - [L]
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
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 = {
preprocess: [preprocess()],
kit: {
inlineStyleThreshold: 8192,
paths: {
relative: false,
},
adapter: adapter({
fallback: "200.html",
}),
adapter: adapter(),
},
}

View File

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