-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathastro.config.ts
56 lines (52 loc) · 1.27 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
55
56
import {defineConfig} from 'astro/config';
import compress from "astro-compress";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import indexPages from "astro-index-pages/index.js";
import {rehypeTasklistEnhancer} from './src/plugins/rehype-tasklist-enhancer';
import {codeTitleRemark} from './src/plugins/code-title-remark';
import remarkMdx from 'remark-mdx';
const optionalIntegrations = [];
if (!process.env.DEV) {
optionalIntegrations.push(compress({
Image: false,
SVG: false,
}))
} else {
console.log('skipping compression');
}
const siteMapFilter = (page) => !page.startsWith('https://fusionauth.io/landing')
const config = defineConfig({
build: {
format: 'file'
},
integrations: [
...optionalIntegrations,
mdx(),
sitemap({
filter: siteMapFilter
}),
indexPages(),
tailwind({
applyBaseStyles: true,
nesting: true,
})
],
markdown: {
remarkPlugins: [
codeTitleRemark,
remarkMdx,
],
rehypePlugins: [
// Tweak GFM task list syntax
// @ts-ignore
rehypeTasklistEnhancer(),
]
},
site: 'https://fusionauth.io/',
// experimental: {
// contentCollectionCache: true,
// }
});
export default config;