troylusty.com/astro.config.ts
Troy 6c18cef2da
revert expressivecode plugin
plugin won't work with inline styles disabled like shiki
2025-01-18 21:56:54 +00:00

36 lines
815 B
TypeScript

import { defineConfig, passthroughImageService } from "astro/config";
import sitemap from "@astrojs/sitemap";
import rehypeExternalLinks from "rehype-external-links";
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
// https://astro.build/config
export default defineConfig({
site: "https://troylusty.com",
integrations: [sitemap(), mdx(), tailwind(), icon()],
output: "static",
markdown: {
rehypePlugins: [
[
rehypeExternalLinks,
{
target: "_blank",
},
],
],
shikiConfig: {
wrap: true,
},
syntaxHighlight: false,
},
image: {
service: passthroughImageService(),
},
build: {
inlineStylesheets: "never",
},
experimental: {
responsiveImages: true,
},
});