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:
mahdiarghyani
2025-12-01 12:19:00 +03:30
parent 6571c83025
commit 3ecd1616e0
5 changed files with 535 additions and 1 deletions
+6
View File
@@ -1,4 +1,10 @@
{
"functions": {
"server/api/resume/pdf.get.ts": {
"memory": 1024,
"maxDuration": 10
}
},
"rewrites": [
{
"source": "/stats/js/script.js",