Fix PPR empty generateStaticParams error and update dependencies
- Add placeholder fallback to generateStaticParams for cacheComponents compatibility - Update npm packages within semver range (next 16.1.6, react 19.2.4, shiki 3.22.0, etc.) - Add /new-post skill for blog publishing workflow - Update CLAUDE.md with git remote mirroring docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,9 +15,10 @@ import { FooterCue } from '@/components/footer-cue';
|
||||
import { JsonLd } from '@/components/json-ld';
|
||||
|
||||
export function generateStaticParams() {
|
||||
return allPosts.map((post) => ({
|
||||
const params = allPosts.map((post) => ({
|
||||
slug: post.slug || post.flattenedPath
|
||||
}));
|
||||
return params.length > 0 ? params : [{ slug: '__placeholder__' }];
|
||||
}
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -12,9 +12,10 @@ import { SectionDivider } from '@/components/section-divider';
|
||||
import { JsonLd } from '@/components/json-ld';
|
||||
|
||||
export function generateStaticParams() {
|
||||
return allPages.map((page) => ({
|
||||
const params = allPages.map((page) => ({
|
||||
slug: page.slug || page.flattenedPath
|
||||
}));
|
||||
return params.length > 0 ? params : [{ slug: '__placeholder__' }];
|
||||
}
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -15,9 +15,10 @@ export function generateStaticParams() {
|
||||
slugs.add(getTagSlug(tag));
|
||||
}
|
||||
}
|
||||
return Array.from(slugs).map((slug) => ({
|
||||
const params = Array.from(slugs).map((slug) => ({
|
||||
tag: slug
|
||||
}));
|
||||
return params.length > 0 ? params : [{ tag: '__placeholder__' }];
|
||||
}
|
||||
|
||||
interface Props {
|
||||
|
||||
Reference in New Issue
Block a user