troylusty.com/astro.config.ts

41 lines
930 B
TypeScript
Raw Normal View History

2024-12-23 21:18:55 +00:00
import { defineConfig, passthroughImageService } from "astro/config";
import sitemap from "@astrojs/sitemap";
import rehypeExternalLinks from "rehype-external-links";
import mdx from "@astrojs/mdx";
import tailwindcss from "@tailwindcss/vite";
2024-12-23 21:18:55 +00:00
import icon from "astro-icon";
import alpinejs from "@astrojs/alpinejs";
2024-12-23 21:18:55 +00:00
// https://astro.build/config
export default defineConfig({
site: "https://troylusty.com",
integrations: [sitemap(), mdx(), icon(), alpinejs()],
vite: {
plugins: [tailwindcss()],
},
2024-12-23 21:18:55 +00:00
output: "static",
markdown: {
rehypePlugins: [
[
rehypeExternalLinks,
{
target: "_blank",
},
],
],
2025-01-19 13:30:10 +00:00
shikiConfig: {
wrap: true,
themes: {
light: "github-light-default",
dark: "github-dark-default",
},
},
2024-12-23 21:18:55 +00:00
},
image: {
service: passthroughImageService(),
},
experimental: {
responsiveImages: true,
},
});