devblog/astro.config.ts

45 lines
968 B
TypeScript
Raw Normal View History

2024-12-25 02:14:10 -05:00
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
import sitemap from "@astrojs/sitemap";
import { SITE } from "./src/config";
// https://astro.build/config
export default defineConfig({
site: SITE.website,
integrations: [
tailwind({
applyBaseStyles: false,
}),
react(),
sitemap(),
],
markdown: {
remarkPlugins: [
remarkToc,
[
remarkCollapse,
{
test: "Table of contents",
},
],
],
shikiConfig: {
// For more themes, visit https://shiki.style/themes
2025-01-19 20:57:43 -05:00
themes: { light: "catppuccin-latte", dark: "catppuccin-frappe" },
2024-12-25 02:14:10 -05:00
wrap: true,
},
},
vite: {
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
},
},
scopedStyleStrategy: "where",
2025-01-19 21:33:22 -05:00
experimental: {
contentLayer: true,
},
2024-12-25 02:14:10 -05:00
});