Files
caperren-com/astro.config.mjs

31 lines
792 B
JavaScript

// @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()
],
},
});