diff --git a/src/pages/contents/[slug]/index.tsx b/src/pages/contents/[slug]/index.tsx index 7693ad2..1859ce0 100644 --- a/src/pages/contents/[slug]/index.tsx +++ b/src/pages/contents/[slug]/index.tsx @@ -307,7 +307,7 @@ export async function getStaticProps( context: GetStaticPropsContext ): Promise<{ notFound: boolean } | { props: Props }> { const sdk = getReadySdk(); - const slug = context.params?.slug.toString() ?? ""; + const slug = context.params?.slug?.toString() ?? ""; const content = await sdk.getContentText({ slug: slug, language_code: context.locale ?? "en",