Added static adapter

This commit is contained in:
2021-08-12 18:39:11 +02:00
parent 44c77a8aad
commit 8857b05860
2 changed files with 16 additions and 7 deletions

View File

@@ -1,9 +1,15 @@
import preprocess from "svelte-preprocess";
import staticAdapter from '@sveltejs/adapter-static';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
target: '#svelte',
adapter: staticAdapter(),
files: {
assets: 'static'
}
},
preprocess: [preprocess({