mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-08 02:52:49 +00:00
pwa adjustments
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -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: {
|
||||
"": "/",
|
||||
"./": "/",
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user