-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
21 lines (19 loc) · 900 Bytes
/
astro.config.mjs
File metadata and controls
21 lines (19 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import AutoImport from "astro-auto-import";
import react from "@astrojs/react";
import expressiveCode from "astro-expressive-code";
import rehypeSlug from "rehype-slug";
import { css } from '@emotion/react';
import vue from "@astrojs/vue";
const mdxIntegrations = [AutoImport({
imports: ["./src/components/card/UrlCard.astro", "./src/components/card/TwitterCard.astro", "./src/components/card/ImgCard.astro", "./src/components/ui/Blockquote.astro", "./src/components/box/Box.astro", "./src/components/box/WarningBox.astro", "./src/components/ui/YoutubePlayer.astro"]
}), mdx()];
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), react(), expressiveCode(), ...mdxIntegrations, vue()],
markdown: {
rehypePlugins: [rehypeSlug],
}
});