This commit is contained in:
Philip Cheung 2024-10-08 19:47:35 +08:00
parent bc8b637c00
commit cced5996a4
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
import React from 'react'
import ResponsiveNav from "@/components/Navbar/ResponsiveNav";
import { fetchCourses, fetchCourse, fetchSettings } from "@/utils";
import { fetchCourses, fetchSettings } from "@/utils";
import dynamic from 'next/dynamic'
//import Course from '@/components/Course/Course';
const DynamicComponent = dynamic(() => import('@/components/Course/Course'), {
ssr: false,
ssr: true,
})
async function getCourses() {
const courses = await fetchCourses();