| 1 | import { defineConfig } from "astro/config"; |
| 2 | import mdx from "@astrojs/mdx"; |
| 3 | import tailwind from "@astrojs/tailwind"; |
| 4 | import image from "@astrojs/image"; |
| 5 | import sitemap from "@astrojs/sitemap"; |
| 6 | import prefetch from "@astrojs/prefetch"; |
| 7 | import catppuccinTheme from "./catppuccin.json"; |
| 8 | |
| 9 | import partytown from "@astrojs/partytown"; |
| 10 | |
| 11 | // https://astro.build/config |
| 12 | |
| 13 | // https://astro.build/config |
| 14 | import vercel from "@astrojs/vercel/static"; |
| 15 | |
| 16 | // https://astro.build/config |
| 17 | export default defineConfig({ |
| 18 | site: "https://stevedsimkins.dev", |
| 19 | markdown: { |
| 20 | shikiConfig: { |
| 21 | theme: catppuccinTheme, |
| 22 | wrap: true |
| 23 | } |
| 24 | }, |
| 25 | integrations: [mdx({}), tailwind({ |
| 26 | config: { |
| 27 | applyBaseStyles: false |
| 28 | } |
| 29 | }), image({ |
| 30 | serviceEntryPoint: "@astrojs/image/sharp" |
| 31 | }), sitemap(), prefetch(), partytown({ |
| 32 | config: { |
| 33 | forward: ["dataLayer.push"] |
| 34 | } |
| 35 | })], |
| 36 | vite: { |
| 37 | optimizeDeps: { |
| 38 | exclude: ["@resvg/resvg-js"] |
| 39 | } |
| 40 | }, |
| 41 | output: "static", |
| 42 | adapter: vercel({ |
| 43 | analytics: true |
| 44 | }) |
| 45 | }); |