fix(server): server startup on windows (#6071)
This commit is contained in:
@@ -2,7 +2,7 @@ import 'reflect-metadata';
|
|||||||
|
|
||||||
import { cpSync } from 'node:fs';
|
import { cpSync } from 'node:fs';
|
||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||||
|
|
||||||
import { config } from 'dotenv';
|
import { config } from 'dotenv';
|
||||||
import { omit } from 'lodash-es';
|
import { omit } from 'lodash-es';
|
||||||
@@ -21,7 +21,7 @@ async function loadRemote(remoteDir: string, file: string) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await import(filePath);
|
await import(pathToFileURL(filePath).href);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function load() {
|
async function load() {
|
||||||
|
|||||||
Reference in New Issue
Block a user