| 1 | {
|
| 2 | "$schema": "https://openapi.vercel.sh/vercel.json",
|
| 3 | "buildCommand": "corepack pnpm build",
|
| 4 | "outputDirectory": "apps/dashboard/dist",
|
| 5 | "functions": {
|
| 6 | "api/index.ts": { "maxDuration": 60 },
|
| 7 | "api/mcp.ts": { "maxDuration": 60 }
|
| 8 | },
|
| 9 | "rewrites": [
|
| 10 | { "source": "/health", "destination": "/api/index?path=/health" },
|
| 11 | { "source": "/ready", "destination": "/api/index?path=/ready" },
|
| 12 | { "source": "/openapi.json", "destination": "/api/index?path=/openapi.json" },
|
| 13 | { "source": "/extensions/trust/v0.1", "destination": "/api/index?path=/extensions/trust/v0.1" },
|
| 14 | { "source": "/sessions/:id/events", "destination": "/api/index?path=/sessions/:id/events" },
|
| 15 | { "source": "/agents/:id/card.json", "destination": "/api/index?path=/agents/:id/card.json" },
|
| 16 | {
|
| 17 | "source": "/agents/:id/a2a-agent-card.json",
|
| 18 | "destination": "/api/index?path=/agents/:id/a2a-agent-card.json"
|
| 19 | },
|
| 20 | {
|
| 21 | "source": "/agents/:id/.well-known/openclasp-agent.json",
|
| 22 | "destination": "/api/index?path=/agents/:id/.well-known/openclasp-agent.json"
|
| 23 | },
|
| 24 | { "source": "/v0.1/:path*", "destination": "/api/index?path=/v0.1/:path*" },
|
| 25 | { "source": "/mcp", "destination": "/api/mcp" },
|
| 26 | {
|
| 27 | "source": "/.well-known/oauth-protected-resource",
|
| 28 | "destination": "/api/oauth-protected-resource"
|
| 29 | },
|
| 30 | {
|
| 31 | "source": "/.well-known/oauth-authorization-server",
|
| 32 | "destination": "/api/oauth-authorization-server"
|
| 33 | },
|
| 34 | {
|
| 35 | "source": "/.well-known/openclasp-session-key",
|
| 36 | "destination": "/api/index?path=/.well-known/openclasp-session-key"
|
| 37 | },
|
| 38 | { "source": "/login", "destination": "/" },
|
| 39 | { "source": "/sso-callback", "destination": "/" },
|
| 40 | { "source": "/dashboard", "destination": "/" },
|
| 41 | { "source": "/history", "destination": "/" },
|
| 42 | { "source": "/agents", "destination": "/" },
|
| 43 | { "source": "/insights", "destination": "/" },
|
| 44 | { "source": "/connect", "destination": "/" },
|
| 45 | { "source": "/settings", "destination": "/" }
|
| 46 | ]
|
| 47 | }
|