(missingVars: readonly string[])
| 32 | }; |
| 33 | |
| 34 | const accessConfigErrorResponse = (missingVars: readonly string[]): Response => |
| 35 | new Response(`${cloudflareAccessConfigErrorMessage(missingVars)}\n`, { |
| 36 | status: 503, |
| 37 | headers: { |
| 38 | "cache-control": "no-store", |
| 39 | "content-type": "text/plain; charset=utf-8", |
| 40 | }, |
| 41 | }); |
| 42 | |
| 43 | export default { |
| 44 | fetch: async (request: Request, env: CloudflareEnv, ctx: ExecutionContext): Promise<Response> => { |
no test coverage detected