perfomance issues fixed
This commit is contained in:
parent
543c26d3e9
commit
7d9f00a43e
@ -1,14 +1,16 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: "export", // keep: needed for next export
|
output: "export", // keep: needed for next export
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
images: {
|
images: {
|
||||||
unoptimized: true, // ✅ needed
|
unoptimized: true, // ✅ needed
|
||||||
},
|
},
|
||||||
swcMinify: true, // explicit SWC minify
|
swcMinify: true, // explicit SWC minify
|
||||||
experimental: {
|
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;
|
module.exports = nextConfig;
|
||||||
|
|||||||
10
package.json
10
package.json
@ -33,5 +33,11 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"sitemap": "^8.0.0"
|
"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