performence issues fixed
This commit is contained in:
parent
8533a673f6
commit
104cfc2431
@ -1,14 +1,18 @@
|
||||
import { poppins } from "@/lib/font";
|
||||
// import dynamic from "next/dynamic";
|
||||
|
||||
// // Lazy load heavy components
|
||||
// const ContactFloat = dynamic(() => import("@/components/ContactFloat"), { ssr: false });
|
||||
// const AutoPopup = dynamic(() => import("@/components/AutoPopup"), { ssr: false });
|
||||
|
||||
// Import only necessary CSS for global layout
|
||||
import "@/node_modules/react-modal-video/css/modal-video.css";
|
||||
import "../public/assets/css/bootstrap.css";
|
||||
import "../public/assets/css/color.css";
|
||||
import "../public/assets/css/style.css";
|
||||
import "swiper/css";
|
||||
// import "swiper/css/navigation"
|
||||
import "swiper/css/pagination";
|
||||
import "swiper/css/free-mode";
|
||||
import { poppins } from "@/lib/font";
|
||||
import ContactFloat from "@/components/ContactFloat"
|
||||
import AutoPopup from "@/components/AutoPopup";
|
||||
|
||||
export const metadata = {
|
||||
title: "Best Pain Relief & Physiotherapy - Repharehab Clinic",
|
||||
@ -20,7 +24,10 @@ export default function RootLayout({ children }) {
|
||||
<html lang="en" className={`${poppins.variable}`}>
|
||||
<body>
|
||||
{children}
|
||||
{/* <AutoPopup/> */}
|
||||
|
||||
{/* Lazy loaded components */}
|
||||
{/* <ContactFloat /> */}
|
||||
{/* <AutoPopup /> */}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
@ -1,10 +1,14 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: "export",
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
output: "export", // keep: needed for next export
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
unoptimized: true, // keep: for static export
|
||||
},
|
||||
swcMinify: true, // explicit SWC minify
|
||||
experimental: {
|
||||
forceSwcTransforms: true // use SWC only
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user