-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
53 lines (51 loc) · 1.29 KB
/
astro.config.mjs
File metadata and controls
53 lines (51 loc) · 1.29 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
// @ts-check
import { fileURLToPath } from "node:url";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import { defineConfig } from "astro/config";
import UnoCSS from "@unocss/astro";
import remarkMdc from "remark-mdc";
import { remarkMdcToMdx } from "./src/plugins/remark-mdc-to-mdx.ts";
import { remarkMermaidAscii } from "./src/plugins/remark-mermaid-ascii.ts";
import cloudflare from "@astrojs/cloudflare";
import sentry from "@sentry/astro";
// https://astro.build/config
export default defineConfig({
site: "https://just-be.dev",
output: "static",
adapter: cloudflare(),
experimental: {
liveContentCollections: true,
},
integrations: [
sentry({
dsn: process.env.PUBLIC_SENTRY_DSN,
sourceMapsUploadOptions: {
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
},
}),
mdx({
syntaxHighlight: "shiki",
shikiConfig: {
theme: "github-light",
},
gfm: true,
remarkPlugins: [remarkMdc, remarkMermaidAscii, remarkMdcToMdx],
}),
sitemap(),
UnoCSS(),
],
vite: {
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
},
markdown: {
shikiConfig: {
theme: "github-dark",
},
},
});