Optimize next.config.ts with package import optimizations
This commit is contained in:
1 parent
3cc201a0ce
commit
f31530b3d7
1 file changed
+3
-1
+3
-1
@@ -11,9 +11,11 @@ const getGitCommit = () => {
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
deploymentId: process.env.NEXT_DEPLOYMENT_ID?.trim() || getGitCommit(),
|
||||
swcMinify: true,
|
||||
reactStrictMode: true,
|
||||
serverExternalPackages: ["lzma", "sharp"],
|
||||
experimental: {
|
||||
optimizePackageImports: ["lucide-react", "date-fns"],
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in new issue
Block a user