-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
82 lines (79 loc) · 1.77 KB
/
astro.config.mjs
File metadata and controls
82 lines (79 loc) · 1.77 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import { defineConfig, fontProviders } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel";
import svgr from "vite-plugin-svgr";
import {
transformerMetaHighlight,
transformerMetaWordHighlight,
transformerNotationDiff,
transformerNotationErrorLevel,
transformerNotationFocus,
transformerNotationHighlight,
} from "@shikijs/transformers";
export default defineConfig({
output: "static",
adapter: vercel(),
site: "https://blog.kronglog.dev",
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport",
},
markdown: {
shikiConfig: {
themes: {
light: "github-light",
dark: "github-dark",
},
// 긴 코드라인 자동 줄바꿈 (가로 스크롤 방지)
wrap: true,
langs: [
"tsx",
"jsx",
"javascript",
"typescript",
"json",
"html",
"css",
"scss",
"less",
"sass",
"stylus",
"python",
"http",
"java",
"c",
"cpp",
"csharp",
"bash",
"shell",
"sql",
"yaml",
"markdown",
"diff",
"docker",
"go",
"rust",
],
transformers: [
transformerMetaHighlight(),
transformerMetaWordHighlight(),
transformerNotationDiff(),
transformerNotationErrorLevel(),
transformerNotationFocus(),
transformerNotationHighlight(),
],
},
},
vite: {
plugins: [tailwindcss(), svgr()],
},
image: {
service: {
entrypoint: "astro/assets/services/sharp",
},
},
integrations: [mdx(), react(), sitemap()],
});