···9393 ),
9494 ),
9595 )
9696- .push(Router::with_path("{*path}").get(StaticDir::new(["static"]).defaults("fallback.html")));
9696+ .push(Router::with_path("{*path}").get(StaticDir::new(["static"]).fallback("index.html")));
9797}
98989999/// A simple endpoint to test if the server is running.
···3344/** @type {import('@sveltejs/kit').Config} */
55const config = {
66- // Consult https://svelte.dev/docs/kit/integrations
77- // for more information about preprocessors
86 preprocess: vitePreprocess(),
97108 kit: {
1111- // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
1212- // If your environment is not supported, or you settled on a specific environment, switch out the adapter.
1313- // See https://svelte.dev/docs/kit/adapters for more information about adapters.
1414- adapter: adapter({ fallback: "fallback.html" }),
99+ adapter: adapter({ fallback: "index.html", precompress: true }),
1510 },
1611};
1712