13 lines
600 B
PowerShell
13 lines
600 B
PowerShell
$env:VITE_DEV_PROXY_TARGET = "http://127.0.0.1:81"
|
|
Remove-Item Env:\VITE_API_BASE_URL -ErrorAction SilentlyContinue
|
|
Remove-Item Env:\VITE_ADMIN_API_BASE_URL -ErrorAction SilentlyContinue
|
|
$process = Start-Process `
|
|
-FilePath "npm.cmd" `
|
|
-ArgumentList @("run", "dev", "--", "--host", "127.0.0.1", "--port", "3000") `
|
|
-WorkingDirectory "E:\yuminail\YumiNail-Frontend" `
|
|
-RedirectStandardOutput "E:\yuminail\artifacts\full-regression\frontend-3000.out.log" `
|
|
-RedirectStandardError "E:\yuminail\artifacts\full-regression\frontend-3000.err.log" `
|
|
-PassThru `
|
|
-WindowStyle Hidden
|
|
$process.Id
|