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