fix: dont set assets_json during build (#33051)

This commit is contained in:
Ankush Menat 2025-06-23 12:30:33 +05:30 committed by GitHub
parent 4fc2a39e44
commit 16580c14cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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