-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
114 lines (112 loc) · 2.97 KB
/
astro.config.mjs
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import vercel from "@astrojs/vercel/serverless";
import dotenv from "dotenv";
import expressiveCode from "astro-expressive-code";
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
// "remark-mermaidjs": "^7.0.0",
// "@playwright/test": "^1.49.1",
// import remarkMermaid from "remark-mermaidjs";
dotenv.config();
export default defineConfig({
site: "https://www.rafay99.com",
output: "server",
build: {
format: "directory",
},
experimental: {
svg: true,
},
markdown: {
// remarkPlugins: [remarkMermaid],
shikiConfig: {
theme: "tokyo-night",
defaultColor: false,
langs: [],
langAlias: {
cjs: "javascript",
},
wrap: false,
transformers: [],
},
},
security: {
checkOrigin: true,
},
integrations: [
expressiveCode({
themes: ["tokyo-night"],
plugins: [pluginLineNumbers(), pluginCollapsibleSections({})],
defaultProps: {
showLineNumbers: true,
startLineNumber: 1,
foreground: "var(--accent)",
highlightForeground: "#85c7ebb3",
},
styleOverrides: {
codeFontFamily: "'Fira Code', monospace",
codeFontSize: "1.5em",
codeLineHeight: "1.5",
codePaddingBlock: "4px",
codeBorderRadius: "4px",
codeWidth: "auto",
codeMaxWidth: "auto",
preColor: "#cddbf7",
preFontFamily: "'Fira Code', monospace",
preFontSize: "1em",
preLineHeight: "1.5",
},
}),
mdx(),
sitemap(),
react({
include: ["**/react/*"],
}),
tailwind(),
],
adapter: vercel({
webAnalytics: {
enabled: true,
},
imageService: true,
}),
vite: {
resolve: {
alias: {
"@assets": "/src/assets",
"@components": "/src/components",
"@astro": "/src/components/AstroCompoent",
"@react": "/src/components/ReaactCompoents",
"@content": "/src/content",
"@layouts": "/src/layouts",
"@pages": "/src/pages",
"@styles": "/src/styles",
"@types": "/src/types",
"@util": "/src/util",
"@config": "/src/config",
},
resolve: {
alias: {
"@assets": "/src/assets",
"@components": "/src/components",
"@astro": "/src/components/AstroCompoent",
"@react": "/src/components/ReaactCompoents",
"@content": "/src/content",
"@layouts": "/src/layouts",
"@pages": "/src/pages",
"@styles": "/src/styles",
"@types": "/src/types",
"@util": "/src/util",
"@config": "/src/config",
},
},
optimizeDeps: {
include: ["react-icons/fa"],
},
},
},
});