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

5150
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,6 +19,7 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "next",
"@sveltejs/adapter-static": "^1.0.0-next.29",
"@sveltejs/kit": "next",
"@tailwindcss/forms": "^0.5.0",
"@testing-library/svelte": "^3.0.3",

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']