Fix style + nix?
This commit is contained in:
parent
a987671e4a
commit
c135de9c86
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -120,7 +120,11 @@ export async function ImageProxy(req: Request, res: Response) {
|
||||
const arrayBuffer = await request.arrayBuffer();
|
||||
let resultBuffer = Buffer.from(arrayBuffer);
|
||||
|
||||
if (!sentImageProxyWarning && resizeSupported.has(contentType) && /^\d+x\d+$/.test(path[1])) {
|
||||
if (
|
||||
!sentImageProxyWarning &&
|
||||
resizeSupported.has(contentType) &&
|
||||
/^\d+x\d+$/.test(path[1])
|
||||
) {
|
||||
if (sharp !== false) {
|
||||
try {
|
||||
sharp = await import("sharp");
|
||||
|
||||
Reference in New Issue
Block a user