| 4 | import { Ratelimit } from "./rateLimiter"; |
| 5 | |
| 6 | export interface Env { |
| 7 | /** The hostname needs to be changed to allow requests to pass to the Trigger.dev platform */ |
| 8 | REWRITE_HOSTNAME: string; |
| 9 | REWRITE_PORT?: string; |
| 10 | AWS_SQS_ACCESS_KEY_ID: string; |
| 11 | AWS_SQS_SECRET_ACCESS_KEY: string; |
| 12 | AWS_SQS_QUEUE_URL: string; |
| 13 | AWS_SQS_REGION: string; |
| 14 | //rate limiter |
| 15 | API_RATE_LIMITER: Ratelimit; |
| 16 | } |
| 17 | |
| 18 | export default { |
| 19 | async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> { |
nothing calls this directly
no outgoing calls
no test coverage detected