# Run second Flash Send dev instance for local testing
# Port offset: +100

$env:FLASH_SEND_PORT_OFFSET = "100"
$env:FLASH_SEND_INSTANCE = "LocalTest2"

Write-Host ""
Write-Host "========================================" -ForegroundColor Cyan
Write-Host "  Flash Send - Dev Instance 2" -ForegroundColor White
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "Port Config:" -ForegroundColor Yellow
Write-Host "  UDP Broadcast: 53317 (shared)" -ForegroundColor Gray
Write-Host "  UDP Listen:    53417 (53317 + 100)" -ForegroundColor Gray
Write-Host "  WebSocket:     53418 (53318 + 100)" -ForegroundColor Gray
Write-Host "  HTTP:          53419 (53319 + 100)" -ForegroundColor Gray
Write-Host ""
Write-Host "Make sure Instance 1 is running in another terminal" -ForegroundColor Green
Write-Host ""

Set-Location $PSScriptRoot\..

pnpm tauri dev
