chore: upgrade dependencies

This commit is contained in:
xfy
2025-05-19 14:41:51 +08:00
parent fe51fa33c8
commit 7e9a7b616d
28 changed files with 1611 additions and 1743 deletions

View File

@ -9,8 +9,13 @@ export async function generateStaticParams() {
return await getPostListPath();
}
export default async function Page({ params }: { params: { page: string } }) {
const page = Number(params.page);
export default async function Page({
params,
}: {
params: Promise<{ page: string }>;
}) {
const { page: pageNumber } = await params;
const page = Number(pageNumber);
if (!page) notFound();
const allPosts = await postLists();