fix(deps): update nextjs monorepo to v15 (major) (#1844)

This commit is contained in:
Meier Lukas
2025-01-04 19:47:23 +01:00
committed by GitHub
parent 92f4f9421e
commit d98552540a
51 changed files with 601 additions and 314 deletions

View File

@@ -9,11 +9,11 @@ import { env } from "~/env.mjs";
import { WidgetPreviewPageContent } from "./_content";
interface Props {
params: { kind: string };
params: Promise<{ kind: string }>;
}
export default async function WidgetPreview(props: Props) {
if (!(props.params.kind in widgetImports || env.NODE_ENV !== "development")) {
if (!((await props.params).kind in widgetImports || env.NODE_ENV !== "development")) {
notFound();
}
@@ -26,7 +26,7 @@ export default async function WidgetPreview(props: Props) {
},
});
const sort = props.params.kind as WidgetKind;
const sort = (await props.params).kind as WidgetKind;
return (
<Center h="100vh">