mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-17 23:09:35 +00:00
- verify_frontend_openapi_paths: capture \\/api/v1/...\, strip queries, optional prefix match for {param} routes
- kill-port-3000.ps1: clearer messages when port is already free
Made-with: Cursor
15 lines
549 B
PowerShell
15 lines
549 B
PowerShell
# Free localhost:3000 (Next standalone / Playwright webServer). Run from salesflow-saas:
|
|
# .\scripts\kill-port-3000.ps1
|
|
$ErrorActionPreference = "SilentlyContinue"
|
|
$conns = Get-NetTCPConnection -LocalPort 3000 -ErrorAction SilentlyContinue
|
|
if (-not $conns) {
|
|
Write-Host "Port 3000 is free." -ForegroundColor DarkGray
|
|
exit 0
|
|
}
|
|
$conns | ForEach-Object {
|
|
try {
|
|
Stop-Process -Id $_.OwningProcess -Force -ErrorAction SilentlyContinue
|
|
} catch { }
|
|
}
|
|
Write-Host "Stopped process(es) listening on port 3000." -ForegroundColor Green
|