param(
  [string]$EnvPath = (Join-Path $PSScriptRoot "..\.env"),
  [int]$Port = 8000,
  [switch]$NoWasmDryRun
)

$rootScript = Join-Path $PSScriptRoot "..\run_web.ps1"
if (-not (Test-Path $rootScript)) {
  Write-Error "Missing run_web.ps1 at $rootScript"
  exit 1
}

if ($NoWasmDryRun) {
  & $rootScript -EnvPath $EnvPath -Port $Port -NoWasmDryRun
} else {
  & $rootScript -EnvPath $EnvPath -Port $Port
}
