mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
refactor(playground): remove generateStaticParams function
This commit is contained in:
commit
d31edbaf08
@ -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,
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user