Optimize Dockerfile and Next.js configuration for CI/CD efficiency. Implemented caching for npm installs, disabled React Compiler in Docker builds, and adjusted build command to use webpack. Updated GitHub Actions workflow to enhance build process with BuildKit support.

This commit is contained in:
smhk1376 committed 2026-09-24 15:05:23 +03:30
1 parent 44f4fa98e2
commit f585a5e35e
4 files changed
+17 -4

No files matched your search

+2 -1
View File
@@ -5,7 +5,8 @@ const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts");
const nextConfig: NextConfig = {
output: "standalone",
reactCompiler: true,
// Babel React Compiler is heavy in Docker/CI; keep it for local `next dev`.
reactCompiler: process.env.DISABLE_REACT_COMPILER !== "1",
experimental: {
optimizePackageImports: ["lucide-react"],
},