Skip to content

Commit 03bc6f4

Browse files
committed
adapter-static
1 parent b5eb8a1 commit 03bc6f4

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

package-lock.json

Lines changed: 6 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@fontsource/fira-mono": "^4.5.10",
1818
"@neoconfetti/svelte": "^1.0.0",
1919
"@playwright/test": "^1.28.1",
20-
"@sveltejs/adapter-auto": "^2.0.0",
20+
"@sveltejs/adapter-static": "^2.0.3",
2121
"@sveltejs/kit": "^1.20.4",
2222
"@types/cookie": "^0.5.1",
2323
"@typescript-eslint/eslint-plugin": "^6.0.0",

svelte.config.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import adapter from '@sveltejs/adapter-auto';
1+
import adapter from '@sveltejs/adapter-static';
22
import { vitePreprocess } from '@sveltejs/kit/vite';
33

44
/** @type {import('@sveltejs/kit').Config} */
@@ -8,12 +8,15 @@ const config = {
88
preprocess: vitePreprocess(),
99

1010
kit: {
11-
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
12-
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
13-
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
14-
adapter: adapter(),
15-
outDir: '.dist',
16-
base: '/'
11+
adapter: adapter({
12+
// default options are shown. On some platforms
13+
// these options are set automatically — see below
14+
pages: 'build',
15+
assets: 'build',
16+
fallback: undefined,
17+
precompress: false,
18+
strict: true
19+
})
1720
}
1821
};
1922

0 commit comments

Comments
 (0)