From 5681e433414b1d37aaa63ee78711927e99bd86ac Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Tue, 3 Jun 2025 15:13:30 -0600 Subject: [PATCH] oops --- astro.config.mjs | 1 + src/pages/post/[...slug].astro | 2 ++ 2 files changed, 3 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index 2a57602..689b280 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -19,6 +19,7 @@ export default defineConfig({ redirects: { '/feed': '/rss.xml', }, + output: 'server', vite: { plugins: [tailwindcss()] }, diff --git a/src/pages/post/[...slug].astro b/src/pages/post/[...slug].astro index 716292d..63c5b27 100644 --- a/src/pages/post/[...slug].astro +++ b/src/pages/post/[...slug].astro @@ -3,6 +3,8 @@ import { getCollection, type CollectionEntry } from 'astro:content'; import { Icon } from 'astro-icon/components'; import Layout from '../../layouts/Layout.astro'; +export const prerender = true; + export async function getStaticPaths() { const posts = await getCollection('posts'); return posts.map((post: CollectionEntry<'posts'>) => ({