Skip to content

Commit

Permalink
fix(dev): use port for bun on windows (#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Mar 8, 2025
1 parent b26d2b5 commit c421716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/presets/_nitro/runtime/nitro-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ if (import.meta._tasks) {

function listen(
useRandomPort: boolean = Boolean(
NITRO_NO_UNIX_SOCKET || process.versions.webcontainer
NITRO_NO_UNIX_SOCKET ||
process.versions.webcontainer ||
("Bun" in globalThis && process.platform === "win32")
)
) {
return new Promise<void>((resolve, reject) => {
Expand Down

0 comments on commit c421716

Please sign in to comment.