mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(web): align dev server node runtime
This commit is contained in:
1 parent
eebb428dd3
commit
e3370b52c2
6 files changed
+44
-28
No files matched your search
@@ -0,0 +1,11 @@
|
||||
export function createChatlabServeCommand({ serverDir, backendPort, nodeExecutable = process.execPath }) {
|
||||
return {
|
||||
command: nodeExecutable,
|
||||
args: ['--watch', '--import', 'tsx', 'src/cli.ts', 'serve', '--port', String(backendPort)],
|
||||
options: {
|
||||
cwd: serverDir,
|
||||
stdio: ['ignore', 'pipe', 'pipe'],
|
||||
env: { ...process.env },
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user