diff --git a/esbuild/esbuild.js b/esbuild/esbuild.js index f6218d58c7..b288b4e495 100644 --- a/esbuild/esbuild.js +++ b/esbuild/esbuild.js @@ -472,6 +472,11 @@ async function write_assets_json(metafile) { } async function update_assets_json_in_cache() { + // Redis won't be present during docker image build + if (process.env.FRAPPE_DOCKER_BUILD) { + return; + } + // update assets_json cache in redis, so that it can be read directly by python let client = get_redis_subscriber("redis_cache"); // handle error event to avoid printing stack traces