Files
portfolio/vercel.json
T
mahdiarghyani 3ecd1616e0 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
2025-12-01 12:19:00 +03:30

30 lines
562 B
JSON

{
"functions": {
"server/api/resume/pdf.get.ts": {
"memory": 1024,
"maxDuration": 10
}
},
"rewrites": [
{
"source": "/stats/js/script.js",
"destination": "https://plausible.io/js/script.tagged-events.js"
},
{
"source": "/stats/api/event",
"destination": "https://plausible.io/api/event"
}
],
"headers": [
{
"source": "/_nuxt/(.*)",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}