Skip to content

Commit

Permalink
Update a path
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmoroz committed Oct 18, 2024
1 parent 0dc931b commit 9cb3df3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/app/playground/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ export default async function Page(props: Props) {
}

export async function generateStaticParams() {
const routes = (await readdir('app/playground', { withFileTypes: true }))
const routes = (await readdir('src/app/playground', { withFileTypes: true }))
.filter(
(entry: Dirent) => entry.name.endsWith('.tsx') && entry.name !== 'page.tsx' && entry.isFile(),
(entry: Dirent) =>
entry.name.endsWith('.tsx') && entry.name !== 'page.tsx' && entry.isFile(),
)
.map((entry: Dirent) => ({ slug: basename(entry.name, extname(entry.name)) }));

Expand Down

0 comments on commit 9cb3df3

Please sign in to comment.