mirror of
https://github.com/mmahdium/portfolio.git
synced 2026-08-16 21:14:31 +03:30
feat(resume): add PDF download functionality with server endpoint
- Add useResumePdf composable for client-side PDF download handling - Implement /api/resume/pdf server endpoint for PDF generation - Add puppeteer and @sparticuz/chromium dependencies for PDF rendering - Add puppeteer-core for headless browser automation - Update Vercel configuration to support PDF generation - Include loading state management and error handling with toast notifications - Implement blob download with automatic filename generation - Add memory leak prevention through object URL revocation
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{
|
||||
"functions": {
|
||||
"server/api/resume/pdf.get.ts": {
|
||||
"memory": 1024,
|
||||
"maxDuration": 10
|
||||
}
|
||||
},
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/stats/js/script.js",
|
||||
|
||||
Reference in New Issue
Block a user