-
Notifications
You must be signed in to change notification settings - Fork 1
/
svelte.config.js
63 lines (53 loc) · 1.68 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// import adapter from '@sveltejs/adapter-auto'
// import adapter_static from '@sveltejs/adapter-static'
import adapter_vercel from '@sveltejs/adapter-vercel'
// import adapter_static from '@sveltejs/adapter-static'
// import adapter_node from '@sveltejs/adapter-node'
import preprocess from 'svelte-preprocess'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from 'mdsvex'
// import remarkAttr from 'remark-attr'
// import rehypeSlug from 'rehype-slug'
// import autoprefixer from 'autoprefixer'
// import { plugin as markdown, Mode } from "vite-plugin-markdown";
// import preprocessMarkdoc from 'svelte-markdoc'
// import markdocConfig from './markdoc.config.js'
import { config as dotenvconf } from "dotenv"
dotenvconf()
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: ['.svelte', '.svx'], // adding .md here screws up vite meta glob import
preprocess: [
mdsvex({
extensions: ['.svx'],
}),
// vitePreprocess({
// postcss: true,
// }), // this breaks mdsvex w/ custom tailwinds!
preprocess({
postcss: true,
}),
],
// vercel; regular deployment
kit: {
// adapter: adapter_auto(),
adapter: adapter_vercel({
// runtime: 'edge'
}),
// adapter: adapter_static(),
// adapter: adapter_node(),
// used for static, to generate a bunch of pages
// adapter: adapter_static(),
// prerender: {
// crawl: false,
// enabled: false,
// // pages: // generate an array of pages
// // entries: [
// // // "/blog/slug/one-one",
// // // "/blog/slug/two-two",
// // "*"
// // ]
// },
},
};
export default config;