feat: static rendering

This commit is contained in:
xieve
2025-09-10 10:53:29 +02:00
parent 81ace15109
commit f61b472c68
4 changed files with 43 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
import { mdsvex } from 'mdsvex';
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from 'mdsvex';
/** @type {import('@sveltejs/kit').Config} */
const config = {
@@ -11,7 +11,13 @@ const config = {
// 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: false,
strict: true
})
},
extensions: ['.svelte', '.svx']
};