Configure static site generation with adapter-static

This commit is contained in:
2025-12-23 22:50:10 +01:00
parent f352fed7fd
commit 1afd8637eb
5 changed files with 17 additions and 8 deletions

View File

@@ -1,12 +1,16 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
/** @type {import('@sveltejs/kit').Config} */
const config = {
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({
// Default options for static adapter
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true
})
}
};