Static site generation

This commit is contained in:
codevictory 2022-03-17 19:41:23 +02:00
parent f28182c101
commit 5f1f0d58d8
5 changed files with 34 additions and 16 deletions

View file

@ -1,20 +1,18 @@
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
import adapter from '@sveltejs/adapter-static';
export default {
kit: {
adapter: adapter(),
adapter: adapter({
// default options are shown
pages: 'build',
assets: 'build',
fallback: null,
precompress: false
}),
// Override http methods in the Todo forms
methodOverride: {
allowed: ['PATCH', 'DELETE']
prerender: {
// This can be false if you're using a fallback (i.e. SPA mode)
default: true
}
}
};
export default config;