Skip to content

Commit e269233

Browse files
fix file url error (#202)
Co-authored-by: Stanley <spesekspesek@gmail.com>
1 parent ab0b9ad commit e269233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build/start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from "node:path";
22
import fs from "node:fs/promises";
33
import { buildSpessaSynth } from "./build_script.ts";
4-
import { fileURLToPath } from "node:url";
4+
import { fileURLToPath, pathToFileURL } from "node:url";
55

66
// Don't use meta.dirname: https://github.com/spessasus/SpessaSynth
77
const REPO_ROOT = path.resolve(
@@ -27,4 +27,4 @@ if (!(await fileExists(SERVER_FILE))) {
2727

2828
console.info("🖥️ Starting server...");
2929
// Execute!
30-
await import(SERVER_FILE);
30+
await import(pathToFileURL(SERVER_FILE).toString());

0 commit comments

Comments
 (0)