diff --git a/next.config.js b/next.config.js index 3a51a46..3f004a9 100644 --- a/next.config.js +++ b/next.config.js @@ -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; diff --git a/package.json b/package.json index ba7719c..703405a 100644 --- a/package.json +++ b/package.json @@ -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" + ] +} \ No newline at end of file