mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix: 🐛 Fix cyclical imports causing crashes
This commit is contained in:
parent
52630e7042
commit
838f2fd4cf
|
|
@ -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 {
|
export class ProxiableUrl extends URL {
|
||||||
private isAllowedOrigin(): boolean {
|
private isAllowedOrigin(): boolean {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue