$ErrorActionPreference = "Stop"

$Conda = Join-Path $env:USERPROFILE "miniconda3\Scripts\conda.exe"
if (-not (Test-Path $Conda)) {
  $Conda = Join-Path $env:USERPROFILE "Miniconda3\Scripts\conda.exe"
}
$EnvName = "ndc_1c_mvp"

& $Conda run -n $EnvName uvicorn canonical_layer.app:app --host 127.0.0.1 --port 8000 --reload
