mirror of
https://github.com/mmahdium/portfolio.git
synced 2026-08-15 20:52:49 +03:30
- 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
30 lines
562 B
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|