// @ts-check import {defineConfig} from 'astro/config'; import sitemap from "@astrojs/sitemap"; import tailwindcss from "@tailwindcss/vite"; // We don't have access to short imports this early in the build chain // noinspection ES6PreferShortImport import {siteLayout, getPaths} from "./src/data/site-layout.ts"; const disabledPaths = getPaths(siteLayout, [], true) // https://astro.build/config export default defineConfig({ site: "https://caperren.com", prefetch: { prefetchAll: true }, integrations: [ sitemap({ filter: (pagePath) => !disabledPaths.some(disabledPath => pagePath.includes(disabledPath)) }) ], vite: { plugins: [ // @ts-ignore tailwindcss() ], }, });