// @ts-check import mdx from '@astrojs/mdx'; import sitemap from '@astrojs/sitemap'; import {defineConfig} from 'astro/config'; import tailwindcss from "@tailwindcss/vite"; import icon from 'astro-icon'; import cloudflare from '@astrojs/cloudflare'; import mailObfuscation from 'astro-mail-obfuscation'; import rehypeClassNames from "rehype-class-names"; import expressiveCode from "astro-expressive-code"; // https://astro.build/config export default defineConfig({ site: 'https://skye.codes', integrations: [sitemap(), icon(), mailObfuscation(), expressiveCode({ themes: ["catppuccin-mocha", "catppuccin-latte"], useDarkModeMediaQuery: false, themeCssSelector: (theme) => `.${theme.type}`, styleOverrides: { frames: { frameBoxShadowCssValue: ({resolveSetting}) => `0 0 2px 2px ${resolveSetting('frames.editorTabBarBackground')}`, } } }), mdx()], markdown: { rehypePlugins: [ [rehypeClassNames, { "p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote": "animate", "code, a": "not-prose" }] ] }, vite: { plugins: [tailwindcss()], }, session: { driver: "null", }, adapter: cloudflare({ imageService: "compile" }), });