File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ export class NodeDevWorker implements DevWorker {
91
91
env : {
92
92
...process . env ,
93
93
NITRO_DEV_WORKER_ID : String ( this . #id) ,
94
- NITRO_DEV_WORKER_DIR : this . #workerDir,
95
94
} ,
96
95
} ) as Worker & { _exitCode ?: number } ;
97
96
Original file line number Diff line number Diff line change 1
1
import "#nitro-internal-pollyfills" ;
2
+ import { tmpdir } from "node:os" ;
2
3
import { useNitroApp } from "nitropack/runtime" ;
3
4
import { runTask } from "nitropack/runtime" ;
4
5
import { trapUnhandledNodeErrors } from "nitropack/runtime/internal" ;
@@ -9,7 +10,6 @@ import { join } from "node:path";
9
10
import nodeCrypto from "node:crypto" ;
10
11
import { parentPort , threadId } from "node:worker_threads" ;
11
12
import wsAdapter from "crossws/adapters/node" ;
12
- import { isCI } from "std-env" ;
13
13
import {
14
14
defineEventHandler ,
15
15
getQuery ,
@@ -23,11 +23,7 @@ if (!globalThis.crypto) {
23
23
globalThis . crypto = nodeCrypto as unknown as Crypto ;
24
24
}
25
25
26
- const {
27
- NITRO_NO_UNIX_SOCKET ,
28
- NITRO_DEV_WORKER_DIR = "." ,
29
- NITRO_DEV_WORKER_ID ,
30
- } = process . env ;
26
+ const { NITRO_NO_UNIX_SOCKET , NITRO_DEV_WORKER_ID } = process . env ;
31
27
32
28
// Trap unhandled errors
33
29
trapUnhandledNodeErrors ( ) ;
@@ -133,7 +129,7 @@ function getSocketAddress() {
133
129
}
134
130
}
135
131
// Unix socket
136
- return join ( NITRO_DEV_WORKER_DIR , socketName ) ;
132
+ return join ( tmpdir ( ) , socketName ) ;
137
133
}
138
134
139
135
async function shutdown ( ) {
You can’t perform that action at this time.
0 commit comments