api/pdf/index.ts
Content-Disposition
in this way will result in the PDF being downloaded. Removing attachment
will serve the PDF in browser.How to respond with a PDF from an API route
Content-Disposition
in this way will result in the PDF being downloaded. Removing attachment
will serve the PDF in browser.