From ed88b927d3122177d0e985209172df8b8dc0d3c8 Mon Sep 17 00:00:00 2001 From: Tilman Date: Tue, 2 Dec 2025 23:13:39 +0100 Subject: [PATCH] Windows compatible config path --- lib/config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/config.ts b/lib/config.ts index a37ef87..7bab846 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -1,3 +1,4 @@ +import { toFileUrl } from '@std/path'; import { UserModel } from './models/user.ts'; import { Config, OptionalApp } from './types.ts'; @@ -60,7 +61,8 @@ export class AppConfig { }; try { - const configFromFile: Config = (await import(`${Deno.cwd()}/bewcloud.config.ts`)).default; + const configPath = toFileUrl(`${Deno.cwd()}/bewcloud.config.ts`).href; + const configFromFile: Config = (await import(configPath)).default; this.config = { ...config,