troylusty.com/astro.config.ts
Troy aa26e7cd55
All checks were successful
Docker / run-tests (push) Successful in 2m40s
Docker / build-and-push-image (push) Successful in 2m38s
feat: article tags link to articles with the same tag
2025-03-11 20:56:54 +00:00

34 lines
770 B
TypeScript

import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import rehypeExternalLinks from "rehype-external-links";
import mdx from "@astrojs/mdx";
import tailwindcss from "@tailwindcss/vite";
import icon from "astro-icon";
// https://astro.build/config
export default defineConfig({
site: "https://troylusty.com",
integrations: [sitemap(), mdx(), icon()],
trailingSlash: "never",
output: "static",
vite: {
plugins: [tailwindcss()],
},
markdown: {
rehypePlugins: [
[
rehypeExternalLinks,
{
target: "_blank",
},
],
],
shikiConfig: {
wrap: true,
themes: {
light: "github-light-default",
dark: "github-dark-default",
},
},
},
});