feat: add static tag pages

This commit is contained in:
kbot
2026-06-03 10:43:55 -05:00
parent 21be810a68
commit c510abe875
2 changed files with 60 additions and 3 deletions

View File

@@ -4,11 +4,12 @@ import { TableOfContents } from '@/components/blog/TableOfContents'
import { ScrollToTop } from '@/components/ui/ScrollToTop'
import { ReadingProgress } from '@/components/ui/ReadingProgress'
export const dynamicParams = false
export const dynamic = 'force-static'
export const revalidate = 0
export async function generateStaticParams() {
const posts = await getPosts()
if (posts.length === 0) {
return [{ slug: '__placeholder__' }]
}
return posts.map((post) => ({ slug: post.slug }))
}