diff --git a/components/doctors/index.js b/components/doctors/index.js index 82469fc..53bb233 100644 --- a/components/doctors/index.js +++ b/components/doctors/index.js @@ -6,6 +6,7 @@ import SortList from "./sortlist"; import ListDoctors from "./listDoctors"; import LocationD from "../icons/LocationD"; import { useSearchParams } from "next/navigation"; +import { Suspense } from "react"; function DoctorsPage() { const [loading, setLoading] = useState(true); diff --git a/next.config.js b/next.config.js index b60cc32..8534c42 100644 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,12 @@ // next.config.js const nextConfig = { - output: 'standalone', - // Add other configurations below - reactStrictMode: true, - swcMinify: true, - } - - module.exports = nextConfig \ No newline at end of file + output: "standalone", + // Add other configurations below + reactStrictMode: true, + swcMinify: true, + experimental: { + missingSuspenseWithCSRBailout: false, + }, +}; + +module.exports = nextConfig;