Files
caperren-com/astro.config.mjs
Corwin Perren 3aa75e1a10
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 2m31s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped
LeConte deployments page complete, better auto-formatting and import sorting, new inline link, popover definitions, and paragraph components, improvements to component interfaces
2025-12-05 01:02:18 -08:00

32 lines
744 B
JavaScript

// @ts-check
import sitemap from "@astrojs/sitemap";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
// We don't have access to short imports this early in the build chain
// noinspection ES6PreferShortImport
import { getPaths, siteLayout } 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(),
],
},
});