Skip to content

Commit

Permalink
Another build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Nov 13, 2024
1 parent 9c1088e commit fe68640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type PageProps = {
export async function generateMetadata({
params
}: PageProps): Promise<Metadata> {
const path = '/' + params.slug.join('/') ?? '';
const path = '/' + (params.slug.join('/') ?? '');
const { frontmatter } = await getMarkdownContent(path);
const title: string = frontmatter?.title ?? '';
const description: string = frontmatter?.description ?? '';
Expand Down Expand Up @@ -91,7 +91,7 @@ export async function generateStaticParams() {
}

export default async function Page({ params }: PageProps) {
const path = '/' + params.slug.join('/') ?? '';
const path = '/' + (params.slug.join('/') ?? '');
const { content } = await getMarkdownContent(path);

if (path.match(/^\/slice(?=#|\/|$)/)) {
Expand Down

0 comments on commit fe68640

Please sign in to comment.