From 59b68510b8c040733851a54a6dea22b873206210 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 19:51:36 +0800 Subject: [PATCH] fad sfsd --- app/courses/[slug]/page.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/courses/[slug]/page.tsx b/app/courses/[slug]/page.tsx index cf22ca6..2cea74e 100644 --- a/app/courses/[slug]/page.tsx +++ b/app/courses/[slug]/page.tsx @@ -2,10 +2,10 @@ import React from 'react' import ResponsiveNav from "@/components/Navbar/ResponsiveNav"; import { fetchCourses, fetchSettings } from "@/utils"; import dynamic from 'next/dynamic' -import Course from '@/components/Course/Course'; -// const DynamicComponent = dynamic(() => import('@/components/Course/Course'), { -// ssr: true, -// }) +//import Course from '@/components/Course/Course'; +const DynamicComponent = dynamic(() => import('@/components/Course/Course'), { + ssr: true, +}) async function getCourses() { const courses = await fetchCourses(); return courses; @@ -33,7 +33,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
- +
) } \ No newline at end of file