Files
caperren-com/astro.config.mjs
Corwin Perren a38cd26894
All checks were successful
Build and Test - Staging / test (pull_request) Successful in 4m40s
Build and Test - Staging / build_and_push (pull_request) Successful in 5m3s
Build and Test - Staging / deploy_staging (pull_request) Successful in 3s
Fix trailing slashes breaking pathname in prod, keep flex for main page div so footer sits properly, misspelling fix
2025-12-06 11:07:06 -08:00

33 lines
770 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",
trailingSlash: "never",
prefetch: {
prefetchAll: true,
},
integrations: [
sitemap({
filter: (pagePath) =>
!disabledPaths.some((disabledPath) => pagePath.includes(disabledPath)),
}),
],
vite: {
plugins: [
// @ts-ignore
tailwindcss(),
],
},
});