Skip to content

Commit bd94344

Browse files
committed
fix(website): await getPostBySlug and update routes import path
1 parent 2bca998 commit bd94344

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

website/src/app/blog/[slug]/opengraph-image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default async function Image({
4040
params: Promise<{ slug: string }>;
4141
}) {
4242
const { slug } = await params;
43-
const post = getPostBySlug(slug);
43+
const post = await getPostBySlug(slug);
4444
const og = post?.meta.og;
4545
const release = post?.meta.release;
4646

0 commit comments

Comments
 (0)