-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsvelte.config.js
More file actions
28 lines (25 loc) · 775 Bytes
/
svelte.config.js
File metadata and controls
28 lines (25 loc) · 775 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
26
27
28
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
paths: {
// Documentation typically wants you to include the repository
// name in non-dev environments, because GitHub.io Pages sites
// serve under a specific path. However, we skip that, because
// we intend to serve the GitHub pages site with a DNS record
// on a subdomain of our TLD anyways.
base: '',
},
adapter: adapter({
manifest: false,
pages: 'docs',
assets: 'docs',
fallback: '404.html',
precompress: false,
strict: true,
}),
},
};
export default config;