-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.config.ts
39 lines (38 loc) · 976 Bytes
/
app.config.ts
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
import { defineConfig } from "@solidjs/start/config";
import { rollup as mdx } from "./mdx";
import remarkGfm from "remark-gfm";
import remarkShikiTwoslash from "remark-shiki-twoslash";
import rehypeRaw from "rehype-raw";
import { nodeTypes } from "@mdx-js/mdx";
export default defineConfig({
extensions: ["md", "mdx"],
server: {
static: true,
compressPublicAssets: { gzip: false, brotli: false },
prerender: {
autoSubfolderIndex: false,
crawlLinks: true,
routes: ["/", "/404"],
},
},
vite: {
plugins: [
mdx({
include: /\.mdx?$/,
jsx: true,
jsxImportSource: "solid-js",
remarkPlugins: [
remarkGfm,
[
remarkShikiTwoslash.default,
{
lang: "typescript",
themes: ["dark-plus", "light-plus"],
},
],
],
rehypePlugins: [[rehypeRaw, { passThrough: nodeTypes }]],
}),
],
},
});