fix: pdf cors and build with live clerk key

This commit is contained in:
2026-03-14 18:29:26 +00:00
parent 74df03691d
commit c6f69e1c1d

View File

@@ -260,6 +260,8 @@ export const getFile = async (req: Request, res: Response) => {
if (fileDoc) { if (fileDoc) {
res.set('Content-Type', fileDoc.contentType || 'application/pdf'); res.set('Content-Type', fileDoc.contentType || 'application/pdf');
res.set('Content-Disposition', `inline; filename="${fileDoc.filename}"`); res.set('Content-Disposition', `inline; filename="${fileDoc.filename}"`);
res.set('Access-Control-Allow-Origin', '*');
res.set('Cache-Control', 'public, max-age=3600');
return res.send(fileDoc.data); return res.send(fileDoc.data);
} }
} }