fix(image-proxy): use ArrayBuffer instead of Blob to prevent OOM on Node v24 (#5926)

This commit is contained in:
Thomas authored and GitHub committed 2026-06-11 11:50:49 +02:00
1 parent c54a7c9a7e
commit 3e464a76f2
2 files changed
+19 -10

No files matched your search

+5 -1
View File
@@ -112,9 +112,13 @@ export const createGetSetChannel = <TData>(name: string) => {
/**
* Set data in the channel
* @param data data to be stored in the channel
* @param options optional TTL in seconds
*/
setAsync: async (data: TData) => {
setAsync: async (data: TData, options?: { ttlSeconds?: number }) => {
await getSetClient.set(name, superjson.stringify(data));
if (options?.ttlSeconds) {
await getSetClient.expire(name, options.ttlSeconds);
}
},
/**
* Remove data from the channel