forked from tanhauhau/svelte-json-tree
-
Notifications
You must be signed in to change notification settings - Fork 1
/
svelte.config.js
29 lines (25 loc) · 706 Bytes
/
svelte.config.js
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
29
import { mdsvex } from 'mdsvex';
import mdsvexConfig from './mdsvex.config.js';
import { vitePreprocess } from '@sveltejs/kit/vite';
import adapter from '@sveltejs/adapter-static';
const dev = process.env.NODE_ENV === 'development';
let highlighter;
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: ['.svelte', ...mdsvexConfig.extensions],
preprocess: [vitePreprocess(), mdsvex(mdsvexConfig)],
kit: {
paths: {
assets: 'https://lihautan.com/svelte-json-tree',
base: dev ? '' : '/svelte-json-tree',
},
adapter: adapter({
fallback: null,
}),
prerender: {
entries: ['*'],
crawl: false,
},
},
};
export default config;