-
Notifications
You must be signed in to change notification settings - Fork 3
/
astro.config.ts
47 lines (46 loc) · 1.33 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
import db from "@astrojs/db";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import mdx from "@astrojs/mdx";
import netlify from "@astrojs/netlify";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import expressiveCode from "astro-expressive-code";
import { defineConfig } from "astro/config";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import imgAttr from "remark-imgattr";
import { autolinkConfig } from "./plugins/rehype-autolink-config";
export default defineConfig({
site: "https://eva.town",
output: "hybrid",
prefetch: true,
integrations: [
react(),
expressiveCode({
styleOverrides: {
codeFontFamily:
"'MonoLisa', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
},
}),
mdx(),
sitemap(),
db(),
],
trailingSlash: "never",
adapter: netlify(),
markdown: {
rehypePlugins: [rehypeHeadingIds, [rehypeAutolinkHeadings, autolinkConfig]],
remarkPlugins: [imgAttr],
},
vite: {
optimizeDeps: {
exclude: ["fsevents"],
},
},
redirects: {
"/projects": "/",
"/projects/genderswap": "/posts/genderswap",
"/projects/boundaries-map": "/posts/boundaries-map",
"/projects/commonplace": "/posts/commonplace",
"/friends": "/webrings",
},
});