fix: prevent deno deploy from crashing on stack capture #1088

This commit is contained in:
Skillz4Killz
2021-09-13 15:29:41 +00:00
committed by GitHub
parent 7642eab7bd
commit 01615427ca

View File

@@ -33,6 +33,7 @@ export async function runMethod<T = any>(
});
const errorStack = new Error("Location:");
// @ts-ignore Breaks deno deploy. Luca said add tsignore until it's fixed
Error.captureStackTrace(errorStack);
// For proxies we don't need to do any of the legwork so we just forward the request