watzon.tech/astro.config.mjs

44 lines
904 B
JavaScript
Raw Normal View History

2023-09-21 04:33:27 +00: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";
2023-10-22 19:14:27 +00:00
import mdx from '@astrojs/mdx';
2023-09-21 04:33:27 +00:00
// https://astro.build/config
export default defineConfig({
2023-10-18 00:28:10 +00:00
site: "https://watzon.tech/", // replace this with your deployed domain
2023-09-21 04:33:27 +00:00
integrations: [
2023-10-22 19:14:27 +00:00
mdx(),
2023-09-21 04:33:27 +00:00
tailwind({
config: {
applyBaseStyles: false,
},
}),
react(),
sitemap(),
],
markdown: {
remarkPlugins: [
remarkToc,
[
remarkCollapse,
{
test: "Table of contents",
},
],
],
shikiConfig: {
theme: "one-dark-pro",
wrap: true,
},
extendDefaultPlugins: true,
},
vite: {
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
},
},
});