faster page loads

This commit is contained in:
Josh Patra
2025-11-25 10:13:19 -05:00
parent 2df2f4c293
commit 90c2592e46
13 changed files with 34 additions and 15 deletions

View File

@@ -1,17 +1,21 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter()
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: true, // Generates .gz and .br files for even faster serving
strict: true
}),
prerender: {
handleHttpError: 'warn'
}
}
};