nextjs-resume icon indicating copy to clipboard operation
nextjs-resume copied to clipboard

Implement PDF generator with route handlers

Open colinhemphill opened this issue 1 year ago • 1 comments

The new Route Handlers support a Node.js runtime with streaming, so in theory we can move the PDF generator from /pages/api/pdf.ts to /app/api/pdf/route.ts. I haven't tested how straightforward this will be.

colinhemphill avatar Feb 24 '23 15:02 colinhemphill

Not currently possible without some pretty unwieldy workarounds.

https://github.com/diegomura/react-pdf/issues/2350

colinhemphill avatar Nov 14 '23 15:11 colinhemphill