-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
51 lines (46 loc) · 1.24 KB
/
astro.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
40
41
42
43
44
45
46
47
48
49
50
51
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import vercel from "@astrojs/vercel";
import expressiveCode from "astro-expressive-code";
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
const SITE = "https://samrith.dev";
export default defineConfig({
site: SITE,
output: "server",
adapter: vercel({
edgeMiddleware: true,
imageService: true,
webAnalytics: {
enabled: true,
},
}),
markdown: {
remarkPlugins: [],
},
experimental: {
contentIntellisense: true,
},
integrations: [
expressiveCode({
themes: ["vesper"],
frames: {
extractFileNameFromCode: false,
removeCommentsWhenCopyingTerminalFrames: true,
showCopyToClipboardButton: true,
},
plugins: [pluginCollapsibleSections(), pluginLineNumbers()],
}),
mdx({
extendMarkdownConfig: true,
}),
sitemap({
filter: (page) => page !== `${SITE}/404` && page !== `${SITE}/blog/dummy`,
}),
tailwind(),
react(),
],
});