-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathastro.config.ts
More file actions
83 lines (75 loc) · 1.81 KB
/
Copy pathastro.config.ts
File metadata and controls
83 lines (75 loc) · 1.81 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import db from '@astrojs/db';
import mdx from '@astrojs/mdx';
import node from '@astrojs/node';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import a11yEmoji from '@fec/remark-a11y-emoji';
import { defineConfig } from 'astro/config';
import autoImport from 'astro-auto-import';
import expressiveCode from 'astro-expressive-code';
import icon from 'astro-icon';
import metaTags from 'astro-meta-tags';
import showTailwindcssBreakpoint from 'astro-show-tailwindcss-breakpoint';
import autolinkHeadings from 'rehype-autolink-headings';
import externalLinks from 'rehype-external-links';
import slug from 'rehype-slug';
import arrayBuffer from 'vite-plugin-arraybuffer';
import readingTime from '$plugins/remark-reading-time';
import { expressiveCodeOptions } from '$utils/code';
import { blog, site } from '$utils/config';
import { schema } from '$utils/env';
// https://astro.build/config
export default defineConfig({
site: site.url,
devToolbar: {
enabled: false,
},
adapter: node({
mode: 'standalone',
}),
env: {
schema,
},
integrations: [
tailwind(),
db(),
autoImport({ imports: blog.autoImportComponents }),
react(),
expressiveCode(expressiveCodeOptions),
mdx(),
icon({
include: {
mdi: ['*'],
},
}),
sitemap(),
showTailwindcssBreakpoint(),
metaTags(),
],
markdown: {
remarkPlugins: [a11yEmoji, readingTime],
rehypePlugins: [
slug,
[
autolinkHeadings,
{
behavior: 'append',
content: {
type: 'text',
value: '#',
},
},
],
[
externalLinks,
{
target: '_blank',
},
],
],
},
vite: {
plugins: [arrayBuffer()],
},
});