-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathsvelte.config.js
More file actions
25 lines (22 loc) · 688 Bytes
/
Copy pathsvelte.config.js
File metadata and controls
25 lines (22 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import adapterAuto from '@sveltejs/adapter-auto';
import adapterStatic from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
// Use static adapter for GitHub Pages deployment, auto adapter otherwise
adapter: process.env.GITHUB_PAGES
? adapterStatic({
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false,
strict: false
})
: adapterAuto()
}
};
export default config;