Optimize next.config.ts with SWC minification and React strict mode
This commit is contained in:
+3
-1
@@ -11,7 +11,9 @@ const getGitCommit = () => {
|
|||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
deploymentId: process.env.NEXT_DEPLOYMENT_ID?.trim() || getGitCommit(),
|
deploymentId: process.env.NEXT_DEPLOYMENT_ID?.trim() || getGitCommit(),
|
||||||
serverExternalPackages: ["lzma"],
|
swcMinify: true,
|
||||||
|
reactStrictMode: true,
|
||||||
|
serverExternalPackages: ["lzma", "sharp"],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user