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 tailwind from "@astrojs/tailwind";
|
|
|
|
import icon from "astro-icon";
|
|
|
|
|
2025-01-19 13:10:44 +00:00
|
|
|
import expressiveCode from "astro-expressive-code";
|
|
|
|
|
2024-12-23 21:18:55 +00:00
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
|
|
|
site: "https://troylusty.com",
|
2025-01-19 13:10:44 +00:00
|
|
|
integrations: [
|
|
|
|
sitemap(),
|
|
|
|
expressiveCode({
|
|
|
|
themes: ["github-dark-default", "github-light-default"],
|
|
|
|
defaultProps: {
|
|
|
|
frame: "none",
|
|
|
|
wrap: true,
|
|
|
|
},
|
|
|
|
styleOverrides: {
|
|
|
|
frames: {
|
|
|
|
shadowColor: "none",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
mdx(),
|
|
|
|
tailwind(),
|
|
|
|
icon(),
|
|
|
|
],
|
2024-12-23 21:18:55 +00:00
|
|
|
output: "static",
|
|
|
|
markdown: {
|
|
|
|
rehypePlugins: [
|
|
|
|
[
|
|
|
|
rehypeExternalLinks,
|
|
|
|
{
|
|
|
|
target: "_blank",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
service: passthroughImageService(),
|
|
|
|
},
|
|
|
|
experimental: {
|
|
|
|
responsiveImages: true,
|
|
|
|
},
|
|
|
|
});
|