{
  "functions": {
    "app/api/files/upload/route.ts": {
      "maxDuration": 300,
      "memory": 3008
    },
    "app/api/generate-quiz/route.ts": {
      "maxDuration": 300,
      "memory": 3008
    },
    "app/api/credits/purchase/route.ts": {
      "maxDuration": 60,
      "memory": 1024
    },
    "app/api/credits/verify-payment/route.ts": {
      "maxDuration": 60,
      "memory": 1024
    },
    "app/api/stripe-webhook/route.ts": {
      "maxDuration": 60,
      "memory": 1024
    }
  },
  "rewrites": [
    {
      "source": "/api/(.*)",
      "destination": "/api/$1"
    }
  ],
  "headers": [
    {
      "source": "/api/(.*)",
      "headers": [
        {
          "key": "Access-Control-Allow-Origin",
          "value": "*"
        },
        {
          "key": "Access-Control-Allow-Methods",
          "value": "GET, POST, PUT, DELETE, OPTIONS"
        },
        {
          "key": "Access-Control-Allow-Headers",
          "value": "Content-Type, Authorization"
        }
      ]
    }
  ],
  "regions": ["iad1"],
  "framework": "nextjs"
}
