Unverified Commit 6a8a6f7e authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

karakeep: refresh patch (#499933)

parents 5763cf7f 664fd77e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2,13 +2,13 @@ diff --git a/apps/web/.next/standalone/node_modules/next/dist/server/image-optim
index cba8876..c3d7c43 100644
--- a/apps/web/.next/standalone/node_modules/next/dist/server/image-optimizer.js
+++ b/apps/web/.next/standalone/node_modules/next/dist/server/image-optimizer.js
@@ -409,7 +409,8 @@ class ImageOptimizerCache {
@@ -495,7 +495,8 @@ class ImageOptimizerCache {
         ]);
     }
     constructor({ distDir, nextConfig }){
-        this.cacheDir = (0, _path.join)(distDir, "cache", "images");
+        const cacheDir = process.env["NEXT_CACHE_DIR"] || (0, _path.join)(distDir, "cache");
+        this.cacheDir = (0, _path.join)(cacheDir, "images");
-        this.cacheDir = (0, _path.join)(distDir, 'cache', 'images');
+        const cacheDir = process.env['NEXT_CACHE_DIR'] || (0, _path.join)(distDir, 'cache');
+        this.cacheDir = (0, _path.join)(cacheDir, 'images');
         this.nextConfig = nextConfig;
     }
     async get(cacheKey) {