forked from javayhu/haitang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
executable file
·53 lines (51 loc) · 1.32 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
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import AutoImport from "astro-auto-import";
import { defineConfig, squooshImageService } from "astro/config";
import remarkCollapse from "remark-collapse";
import remarkToc from "remark-toc";
import config from "./src/config/config.json";
import icon from "astro-icon";
import partytown from "@astrojs/partytown";
import vercel from "@astrojs/vercel/serverless";
// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: vercel(),
site: config.site.base_url,
base: config.site.base_path ? config.site.base_path : "/",
trailingSlash: config.site.trailing_slash ? "always" : "never",
image: {
service: squooshImageService()
},
integrations: [react(), sitemap(), tailwind({
config: {
applyBaseStyles: false
}
}), AutoImport({
imports: []
}), mdx(), icon({
include: {
tabler: ['*']
}
}), partytown({
config: {
debug: true,
forward: ['dataLayer.push']
}
})
// solidJs()
],
markdown: {
remarkPlugins: [remarkToc, [remarkCollapse, {
test: "Table of contents"
}]],
shikiConfig: {
theme: "one-dark-pro",
wrap: true
},
extendDefaultPlugins: true
}
});