Repository navigation
Commit f864b77
authored
🪟 fix: Correctly Resolve Windows Path (#1)
* fix: use fileURLToPath for CLIENT_DIR to fix Windows ENOENT
`new URL(...).pathname` produces `/C:/...` on Windows, which is an
invalid filesystem path. `fileURLToPath()` correctly converts file
URLs to platform-native paths.
* refactor: use import.meta.dir + path.join for CLIENT_DIR
Bun provides import.meta.dir as a native OS path, so path.join is
the idiomatic way to build paths in a Bun-only entry file.
* style: fix import order in server.ts1 parent 244d2b9 commit f864b77
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments