fix: 🐛 Fix cyclical imports causing crashes

This commit is contained in:
Jesse Wierzbinski 2025-04-06 21:18:24 +02:00
parent 52630e7042
commit 838f2fd4cf
No known key found for this signature in database

View file

@ -1,4 +1,6 @@
import { config } from "~/config.ts";
// HACK: Import like this to avoid circular dependency
// since ProxiableUrl is used in config.ts
const { config } = await import("~/config.ts");
export class ProxiableUrl extends URL {
private isAllowedOrigin(): boolean {