diff --git a/app/courses/[courseId]/edit/page.tsx b/app/courses/[courseId]/edit/page.tsx index 9e30ebe..99b32c9 100644 --- a/app/courses/[courseId]/edit/page.tsx +++ b/app/courses/[courseId]/edit/page.tsx @@ -8,7 +8,7 @@ export default async function EditCoursePage({ params: { courseId: string }; }) { const user = await getAuthUser(); - const { courseId } = params; + const { courseId } = await params; if (user?.organisation?.role !== "admin") { redirect(`/courses/${courseId}`); } diff --git a/app/courses/[courseId]/layout.tsx b/app/courses/[courseId]/layout.tsx index 8f7dce6..c1d7f8a 100644 --- a/app/courses/[courseId]/layout.tsx +++ b/app/courses/[courseId]/layout.tsx @@ -11,7 +11,7 @@ export default async function CourseLayout({ }) { const user = await getAuthUser(); const isAdmin = user?.organisation?.role === "admin"; - const { courseId } = params; + const { courseId } = await params; const response = { id: courseId, diff --git a/app/courses/[courseId]/modules/[moduleId]/edit/page.tsx b/app/courses/[courseId]/modules/[moduleId]/edit/page.tsx index 02c62e5..dd6b95e 100644 --- a/app/courses/[courseId]/modules/[moduleId]/edit/page.tsx +++ b/app/courses/[courseId]/modules/[moduleId]/edit/page.tsx @@ -8,7 +8,7 @@ export default async function EditModulePage({ params: { courseId: string; moduleId: string }; }) { const user = await getAuthUser(); - const { courseId, moduleId } = params; + const { courseId, moduleId } = await params; if (!courseId || !moduleId) { redirect("/courses"); } diff --git a/app/courses/[courseId]/modules/[moduleId]/page.tsx b/app/courses/[courseId]/modules/[moduleId]/page.tsx index 70037cd..5c7337c 100644 --- a/app/courses/[courseId]/modules/[moduleId]/page.tsx +++ b/app/courses/[courseId]/modules/[moduleId]/page.tsx @@ -9,7 +9,7 @@ export default async function ModulePage({ }) { const user = await getAuthUser(); const isAdmin = user?.organisation?.role === "admin"; - const { courseId, moduleId } = params; + const { courseId, moduleId } = await params; return (
diff --git a/app/courses/[courseId]/modules/new/page.tsx b/app/courses/[courseId]/modules/new/page.tsx index 3d43f64..e11a5c1 100644 --- a/app/courses/[courseId]/modules/new/page.tsx +++ b/app/courses/[courseId]/modules/new/page.tsx @@ -8,7 +8,7 @@ export default async function NewModulePage({ params: { courseId: string }; }) { const user = await getAuthUser(); - const { courseId } = params; + const { courseId } = await params; if (!courseId) { redirect("/courses"); } diff --git a/app/courses/[courseId]/page.tsx b/app/courses/[courseId]/page.tsx index 13a3880..3f8f466 100644 --- a/app/courses/[courseId]/page.tsx +++ b/app/courses/[courseId]/page.tsx @@ -8,7 +8,7 @@ export default async function CoursePage({ }) { const user = await getAuthUser(); const isAdmin = user?.organisation?.role === "admin"; - const { courseId } = params; + const { courseId } = await params; return ; } diff --git a/next.config.ts b/next.config.ts index df4f9e8..78841fb 100644 --- a/next.config.ts +++ b/next.config.ts @@ -18,9 +18,6 @@ const nextConfig: NextConfig = { }, ], }, - eslint: { - ignoreDuringBuilds: true, - }, }; export default nextConfig;