build size reduse it

This commit is contained in:
2026-08-06 20:59:19 +05:30
parent 28258b5a69
commit 0ea52551aa
14 changed files with 160 additions and 10 deletions

View File

@@ -2,6 +2,14 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
experimental: {
// Turbopack's build cache lives in .next/cache and only pays off when that
// directory survives between builds. A Docker/Dokploy build starts from a
// clean layer every time, so the cache is written and never read — ~117 MB
// of pure write cost per build. CI_BUILD is set in the Dockerfile only, so
// local `npm run build` keeps its warm cache.
turbopackFileSystemCacheForBuild: process.env.CI_BUILD !== "1",
},
allowedDevOrigins: ["192.168.0.117", "192.168.0.*", "192.168.1.*", "localhost", "127.0.0.1"],
images: {
remotePatterns: [