perfomance issues fixed

This commit is contained in:
Alaguraj0361 2025-10-02 22:28:04 +05:30
parent 543c26d3e9
commit 7d9f00a43e
2 changed files with 16 additions and 8 deletions

View File

@ -7,8 +7,10 @@ const nextConfig = {
},
swcMinify: true, // explicit SWC minify
experimental: {
forceSwcTransforms: true // use SWC only
}
forceSwcTransforms: true, // use SWC only
modern: true, // ✅ enable modern build (ES6+ for modern browsers)
polyfillsOptimization: true // ✅ remove unnecessary polyfills
},
};
module.exports = nextConfig;

View File

@ -33,5 +33,11 @@
},
"devDependencies": {
"sitemap": "^8.0.0"
}
},
"browserslist": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions"
]
}