Skip to content

Commit 9e85eaf

Browse files
Optimisation (#138)
1 parent 65acec9 commit 9e85eaf

File tree

3 files changed

+63
-5
lines changed

3 files changed

+63
-5
lines changed

next.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ const nextConfig: NextConfig = {
99
// },
1010
output: "standalone",
1111
reactStrictMode: true,
12-
productionBrowserSourceMaps: true,
12+
productionBrowserSourceMaps: process.env.NEXT_PUBLIC_NODE_ENV === 'development',
1313
images: {
14+
formats: ['image/avif', 'image/webp'],
1415
remotePatterns: [
1516
{
1617
protocol: "https",
@@ -56,6 +57,9 @@ const nextConfig: NextConfig = {
5657
},
5758
],
5859
},
60+
experimental: {
61+
optimizePackageImports: ['lucide-react', 'framer-motion'],
62+
},
5963
};
6064

6165
export default withNextIntl(nextConfig);

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"react": "19.2.1",
4040
"react-dom": "19.2.1",
4141
"react-icons": "^5.5.0",
42+
"sharp": "^0.34.5",
4243
"tailwind-merge": "^3.4.0"
4344
},
4445
"devDependencies": {
@@ -74,5 +75,6 @@
7475
"typescript-eslint": "^8.48.1",
7576
"vite-tsconfig-paths": "^5.1.4",
7677
"vitest": "^4.0.15"
77-
}
78+
},
79+
"packageManager": "pnpm@10.28.2+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264"
7880
}

0 commit comments

Comments
 (0)