Files
loyaly-merchant/next.config.ts
2026-08-06 20:59:19 +05:30

26 lines
820 B
TypeScript

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: [
{
protocol: "https",
hostname: "images.unsplash.com",
},
],
},
};
export default nextConfig;