diff --git a/static/.htaccess b/static/.htaccess index f560ab26..83b44209 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -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] diff --git a/svelte.config.js b/svelte.config.js index d8998df7..49944fab 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -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(), }, } diff --git a/vite.config.js b/vite.config.js index 01ca625e..c03b7aa8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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: { - "": "/", - "./": "/", - }, - }, }), ], })