Files
caperren-com/astro.config.mjs
Corwin Perren 4a59e44716
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 2m35s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped
Started refactoring, added prettier and checks and reformatted project, added cspell and checks and custom project words, beginning of robotic oceanographic surface sampler content
2025-11-30 15:48:36 -08:00

32 lines
744 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(),
],
},
});