Initial
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { spawn } from 'node:child_process';
|
||||
import path from 'path';
|
||||
|
||||
const child = spawn(process.execPath, ['node_modules/vite/bin/vite.js', 'preview', '--host', '0.0.0.0', '--port', '3000', '--strictPort'], {
|
||||
const child = spawn(process.execPath, [path.join('node_modules', 'vite', 'bin', 'vite.js'), 'preview', '--host', '0.0.0.0', '--port', '3000', '--strictPort'], {
|
||||
stdio: 'inherit',
|
||||
env: {
|
||||
...process.env,
|
||||
|
||||
Reference in New Issue
Block a user