mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-07 02:22:52 +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
|
# 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]
|
||||||
|
|||||||
@@ -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",
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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: {
|
|
||||||
"": "/",
|
|
||||||
"./": "/",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user