This commit is contained in:
2026-06-25 12:30:55 -05:00
parent f31fcd9e84
commit 8c60e154a7
13 changed files with 1163 additions and 13 deletions

View File

@@ -2,12 +2,12 @@ import { spawn } from 'node:child_process';
const mode = process.argv[2] || 'development';
const watch = process.argv.includes('--watch');
const command = watch ? 'nodemon' : 'node';
const args = watch ? ['server/index.js'] : ['server/index.js'];
const args = watch
? ['node_modules/nodemon/bin/nodemon.js', 'server/index.js']
: ['server/index.js'];
const child = spawn(command, args, {
const child = spawn(process.execPath, args, {
stdio: 'inherit',
shell: process.platform === 'win32',
env: {
...process.env,
NODE_ENV: mode