This commit is contained in:
2024-10-08 19:47:35 +08:00
parent bc8b637c00
commit cced5996a4

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();