refactor(playground): remove generateStaticParams function

This commit is contained in:
cfngc4594 2025-03-25 21:02:09 +08:00
commit d31edbaf08

View File

@ -81,13 +81,3 @@ export default async function PlaygroundLayout({
</div> </div>
); );
} }
export async function generateStaticParams() {
const problems = await prisma.problem.findMany({
select: { id: true },
});
return problems.map((problem) => ({
id: problem.id,
}));
}