-
Notifications
You must be signed in to change notification settings - Fork 405
/
astro.config.ts
54 lines (53 loc) · 1.53 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
52
53
54
import { defineConfig } from "astro/config"
import vercel from "@astrojs/vercel/serverless"
import preact from "@astrojs/preact"
import react from "@astrojs/react"
import mdx from "@astrojs/mdx"
import rehypeSlug from "rehype-slug"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeWrapAll from "rehype-wrap-all"
import sitemap from "@astrojs/sitemap"
import { RehypePlugins } from "@astrojs/markdown-remark"
import yaml from "@rollup/plugin-yaml"
import { ccipRedirects } from "./src/config/redirects/ccip"
// https://astro.build/config
export default defineConfig({
site: "https://docs.chain.link",
redirects: {
"/ccip/directory": "/ccip/directory/mainnet",
"/ccip/supported-networks": "/ccip/directory/mainnet",
"/getting-started": "/getting-started/conceptual-overview",
"/resources": "/resources/link-token-contracts",
...ccipRedirects,
},
integrations: [
preact({
include: ["**/preact/*"],
}),
react({
include: ["**/react/*"],
}),
sitemap({ changefreq: "daily" }),
mdx(),
],
markdown: {
rehypePlugins: [
rehypeSlug, // Required for autolink to work properly
[
rehypeAutolinkHeadings,
{
behavior: "wrap",
},
],
// Wrap tables in div with overflow supported
[rehypeWrapAll, { selector: "table", wrapper: "div.overflow-wrapper" }],
] as RehypePlugins,
syntaxHighlight: "prism",
smartypants: false,
},
output: "hybrid",
adapter: vercel(),
vite: {
plugins: [yaml()],
},
})