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:
2026-02-06 14:39:17 +08:00
parent 9c7f2463aa
commit 661b67cc01
6 changed files with 848 additions and 916 deletions

View File

@@ -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 {