Implemented static adapter

This commit is contained in:
endigo9740
2022-04-13 10:12:16 -05:00
parent 9a15c8ad04
commit 6d8ca99cfd
3 changed files with 26 additions and 5136 deletions

View File

@@ -1,4 +1,5 @@
import adapter from '@sveltejs/adapter-auto';
// import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import { configDefaults } from 'vitest/config'
@@ -13,7 +14,13 @@ const config = {
],
kit: {
adapter: adapter(),
adapter: adapter({
// default options are shown
pages: 'build',
assets: 'build',
fallback:'index.html', // index.html (SPA) | null (SSR)
precompress: false
}),
vite: {
test: {
exclude: [...configDefaults.exclude, './package', './build']