perfomance issues fixed
This commit is contained in:
parent
543c26d3e9
commit
7d9f00a43e
@ -1,14 +1,16 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: "export", // keep: needed for next export
|
||||
output: "export", // keep: needed for next export
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
unoptimized: true, // ✅ needed
|
||||
images: {
|
||||
unoptimized: true, // ✅ needed
|
||||
},
|
||||
swcMinify: true, // explicit SWC minify
|
||||
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;
|
||||
|
||||
@ -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"
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user