coworking-stream-guide/astro.config.mjs
2024-04-18 17:41:26 +08:00

25 lines
738 B
JavaScript

import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import expressiveCode from "astro-expressive-code";
import remarkDirective from "remark-directive";
import remarkCalloutDirectives from "./src/assets/plugins/remark-callout-directives-customized.js";
// https://astro.build/config
export default defineConfig({
integrations: [
tailwind(),
expressiveCode(),
mdx({
remarkPlugins: [remarkDirective, remarkCalloutDirectives],
}),
react(),
],
server: {
port: 4321,
},
markdown: {
remarkPlugins: [remarkDirective, remarkCalloutDirectives],
},
});