ignoreBuildErrors: true

This commit is contained in:
2024-10-08 14:46:18 +08:00
parent 722edc1b73
commit ae916f0130
10 changed files with 13 additions and 22 deletions

View File

@@ -1,9 +1,7 @@
import React from 'react'
import ResponsiveNav from "@/components/Navbar/ResponsiveNav";
import { fetchCourses, fetchSettings, fetchAboutus } from "@/utils";
import { CoursesProps, AboutusProps } from "@/types";
import Course from '@/components/Course/Course';
import dynamic from 'next/dynamic'
import {AboutusProps } from "@/types";
import Home from '@/components/Aboutus/Home';
async function getCourses() {
const courses = await fetchCourses();

View File

@@ -1,8 +1,6 @@
import React from 'react'
import ResponsiveNav from "@/components/Navbar/ResponsiveNav";
import { fetchCourses, fetchCourse, fetchSettings } from "@/utils";
import { CoursesProps } from "@/types";
import Course from '@/components/Course/Course';
import dynamic from 'next/dynamic'
const DynamicComponent = dynamic(() => import('@/components/Course/Course'), {
ssr: false,

View File

@@ -1,9 +1,6 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import ResponsiveNav from "../components/Navbar/ResponsiveNav";
import { fetchCourses } from "@/utils";
import { TailSpin } from "react-loader-spinner";
import { Toaster } from "react-hot-toast";
const geistSans = localFont({
src: "./fonts/GeistVF.woff",

View File

@@ -1,7 +1,5 @@
import Image from "next/image";
import Home from "../components/Home/Home";
import { fetchCourses, fetchSettings} from "../utils/index";
import { CoursesProps } from "@/types";
import ResponsiveNav from "../components/Navbar/ResponsiveNav";
type Props = {}
@@ -20,7 +18,7 @@ export const metadata = {
description: "**",
}
export default async function HomePage({ }: Props) {
export default async function HomePage({}: Props) {
const courses = await getCourses();
const settings = await getSettings();
return (