-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
46 lines (44 loc) · 1.02 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
import { defineConfig } from 'astro/config';
import vue from "@astrojs/vue";
import mdx from "@astrojs/mdx";
import { transformerNotationDiff } from "shikiji-transformers";
import unoCSS from "unocss/astro";
import db from "@astrojs/db";
import dynamicImport from 'astro-dynamic-import';
import netlify from "@astrojs/netlify";
// https://astro.build/config
export default defineConfig({
integrations: [vue(), mdx(), db(), unoCSS({
injectReset: true
}), dynamicImport()],
redirects: {
"/docs": {
status: 302,
destination: "/docs/introduction"
},
"/preset": {
status: 302,
destination: "/preset/introduction"
},
"/components": {
status: 302,
destination: "/components/accordion"
}
},
markdown: {
shikiConfig: {
theme: "css-variables",
transformers: [transformerNotationDiff()]
}
},
vite: {
css: {
transformer: "lightningcss"
},
build: {
cssMinify: 'lightningcss'
}
},
output: "hybrid",
adapter: netlify()
});