fix: try to address loading typescript from a compiled binary to no avail: https://github.com/denoland/deno/issues/18327#issuecomment-2989449015

This commit is contained in:
Andy Burke 2025-06-19 17:29:45 -07:00
parent 62761723d4
commit b0548f05cc
3 changed files with 11 additions and 5 deletions

View file

@ -1,5 +1,5 @@
export const PRECHECKS: Record<string, (req: Request, meta: Record<string, any>) => Promise<Response | undefined> | Response | undefined> =
{};
type PRECHECK = (req: Request, meta: Record<string, any>) => Promise<Response | undefined> | Response | undefined;
export const PRECHECKS: Record<string, PRECHECK> = {};
PRECHECKS.GET = (request: Request, _meta: Record<string, any>): Response | undefined => {
const secret = request.headers.get('x-secret');