a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add accept-encoding headers to image proxy

+5
+5
app/api/atproto_images/route.ts
··· 16 16 if (!service) return new NextResponse(null, { status: 404 }); 17 17 const response = await fetch( 18 18 `${service.serviceEndpoint}/xrpc/com.atproto.sync.getBlob?did=${params.did}&cid=${params.cid}`, 19 + { 20 + headers: { 21 + "Accept-Encoding": "gzip, deflate, br, zstd", 22 + }, 23 + }, 19 24 ); 20 25 21 26 // Clone the response to modify headers