{
  "functions": {
    "app/api/helixa/trust/route.ts": { "maxDuration": 60 }
  },
  "rewrites": [
    { "source": "/rotate", "destination": "/rotate.html" },
    { "source": "/accept", "destination": "/accept.html" },
    { "source": "/.well-known/agent-card.json", "destination": "/api/.well-known/agent-card.json" },
    { "source": "/.well-known/x402-email.json", "destination": "/api/.well-known/x402-email.json" },
    { "source": "/register", "destination": "/" },
    { "source": "/discover", "destination": "/" },
    { "source": "/trust", "destination": "/" },
    { "source": "/collaborate", "destination": "/" },
    { "source": "/developers", "destination": "/" },
    { "source": "/app/:path*", "destination": "/app/:path*" }
  ],
  "headers": [
    {
      "source": "/api/(.*)",
      "headers": [
        { "key": "Access-Control-Allow-Origin", "value": "*" },
        { "key": "Access-Control-Allow-Methods", "value": "GET, POST, DELETE, OPTIONS" },
        { "key": "Access-Control-Allow-Headers", "value": "Content-Type, Authorization, X-Admin-Token" }
      ]
    }
  ]
}
