troylusty.com/astro.config.ts

54 lines
1.2 KiB
TypeScript
Raw Normal View History

import { defineConfig, fontProviders } from "astro/config";
2024-12-23 21:18:55 +00:00
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";
// https://astro.build/config
export default defineConfig({
site: "https://troylusty.com",
integrations: [sitemap(), mdx(), icon()],
trailingSlash: "never",
output: "static",
vite: {
plugins: [tailwindcss()],
},
2024-12-23 21:18:55 +00:00
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
},
redirects: {
"/archive": "/projects/archive",
},
experimental: {
fonts: [
{
provider: fontProviders.fontsource(),
name: "Outfit",
cssVariable: "--font-outfit",
weights: ["100 900"],
},
{
provider: fontProviders.fontsource(),
name: "Red Hat Mono",
cssVariable: "--font-red-hat-mono",
weights: ["300 700"],
},
],
},
2024-12-23 21:18:55 +00:00
});