mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
Windows compatible config path
This commit is contained in:
parent
c3609984b5
commit
ed88b927d3
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue