mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
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 { join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||
|
||||
import { config } from 'dotenv';
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user