Configure website for static rendering

This commit is contained in:
2023-11-02 11:08:58 +01:00
parent e04c6a5079
commit 6307ec28d8
6 changed files with 25 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import adapter from "@sveltejs/adapter-auto";
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from "@sveltejs/kit/vite";
/** @type {import('@sveltejs/kit').Config} */
@ -11,7 +11,7 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter(),
adapter: adapter({ pages: "dist" }),
},
};