mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-03 06:42:27 +08:00
- Create vercel.json with optimized function settings: - Chat API: 512MB memory, 120s timeout - Other APIs: 256MB memory, 10s timeout - Remove @vercel/analytics package and imports - Reduce chat route maxDuration from 300s to 120s Expected savings: $2-4/month, keeping costs under $20 included credit
13 lines
233 B
JSON
13 lines
233 B
JSON
{
|
|
"functions": {
|
|
"app/api/chat/route.ts": {
|
|
"memory": 512,
|
|
"maxDuration": 120
|
|
},
|
|
"app/api/**/route.ts": {
|
|
"memory": 256,
|
|
"maxDuration": 10
|
|
}
|
|
}
|
|
}
|