Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
// @ts-check
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import vercel from '@astrojs/vercel/serverless';

export default defineConfig({
site: 'https://getuncaged.dev',
// Everything is prerendered to static HTML by default — the homepage keeps
// shipping as a plain file with no JS. The adapter exists only so the single
// `/dl/<slug>` counting route (which opts out via `prerender = false`) can
// run server-side. See src/lib/downloads.ts for why that route exists.
output: 'static',
adapter: vercel(),
integrations: [
sitemap({
filter: (page) => !page.includes('/design'),
// /design is an internal gallery; /dl/* are redirects, not pages.
filter: (page) => !page.includes('/design') && !page.includes('/dl/'),
// stamp build time so index-refresh requests see the page as fresh
serialize: (item) => ({ ...item, lastmod: new Date().toISOString() }),
}),
Expand Down
Loading