mirror of
https://github.com/LukeHagar/skeleton.git
synced 2025-12-07 20:57:44 +00:00
Implemented static adapter
This commit is contained in:
5150
package-lock.json
generated
5150
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user