karakeep: refresh patch (#499933)

This commit is contained in:
dotlambda
2026-03-15 20:21:11 +00:00
committed by GitHub
@@ -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) {