mirror of
https://github.com/soconnor0919/personal-website.git
synced 2025-12-15 08:14:43 -05:00
Serve PDFs locally and automate updates from GitHub
- Add scripts/update-pdfs.js to download latest PDFs - Add cv.pdf and resume.pdf to public/publications - Update build script to run update-pdfs before next build - Switch CV and resume URLs to local files in cv/page.tsx - Add .vercel to .gitignore and vercel.json for deployment config - Update Next.js to 15.5.2 in package.json and bun.lock - Update next-env.d.ts and tsconfig.json for new types and script exclusion
This commit is contained in:
36
vercel.json
Normal file
36
vercel.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"buildCommand": "bun run build",
|
||||
"installCommand": "bun install",
|
||||
"functions": {
|
||||
"src/app/api/**/*.ts": {
|
||||
"maxDuration": 30
|
||||
}
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"source": "/publications/(.*)\\.pdf",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "public, max-age=86400, s-maxage=86400"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/pdf"
|
||||
},
|
||||
{
|
||||
"key": "Content-Disposition",
|
||||
"value": "inline"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/api/publications/:filename",
|
||||
"destination": "/publications/:filename"
|
||||
}
|
||||
],
|
||||
|
||||
"framework": "nextjs"
|
||||
}
|
||||
Reference in New Issue
Block a user