// @ts-check import { defineConfig } from 'astro/config'; import react from '@astrojs/react'; import tailwind from '@astrojs/tailwind'; import mdx from '@astrojs/mdx'; import vercel from '@astrojs/vercel/serverless'; import remarkDirective from "remark-directive"; import astroStarlightRemarkAsides from "./plugins/astro-starlight-remark-aside/index.js"; import remarkMath from "remark-math"; import rehypeKatex from "rehype-katex"; import expressiveCode from "astro-expressive-code"; import {pluginLineNumbers} from "@expressive-code/plugin-line-numbers"; // https://astro.build/config export default defineConfig({ integrations: [react(), tailwind(), expressiveCode({ plugins: [pluginLineNumbers()], }), mdx()], output: 'server', adapter: vercel(), prefetch: { defaultStrategy: "viewport" }, markdown: { remarkPlugins: [remarkDirective, astroStarlightRemarkAsides, remarkMath], rehypePlugins: [rehypeKatex], shikiConfig: { theme: "catppuccin-macchiato" } } });