SUP_GoldBees_Frontend/run_frontend.ps1
2026-02-01 13:01:28 +00:00

9 lines
344 B
PowerShell

Set-Location "C:\Users\quantfortune\SIP\SIP_India\frontend"
$backendUrlFile = "C:\Users\quantfortune\SIP\SIP_India\ngrok_backend_url.txt"
if (Test-Path $backendUrlFile) {
$env:VITE_API_BASE_URL = (Get-Content $backendUrlFile -Raw).Trim()
} else {
$env:VITE_API_BASE_URL = "http://localhost:8000"
}
npm run dev -- --host 0.0.0.0 --port 3000