chore: land in-progress workspace changes before 1.16.2
The tree carried uncommitted work from several areas (web push, mobile screens, admin charts, test-hygiene cleanup, CI and map docs). It is landed as one commit so the release pipeline can start from a clean tree; the desktop transcript-correction behaviour shipped in the previous commit and is unchanged here.
This commit is contained in:
parent
9c2b6a9782
commit
7fe49c437e
144 changed files with 3760 additions and 4523 deletions
|
|
@ -77,13 +77,20 @@ if (-not $SkipBuild) {
|
|||
# Web app (@d3ro/web, served at /app). NEXT_PUBLIC_* values are baked in at build time.
|
||||
Write-Host "`n[1.6/4] Building D3RO Voice Next.js Web App Image..." -ForegroundColor Yellow
|
||||
$webBuildArgs = @()
|
||||
foreach ($name in @("NEXT_PUBLIC_SUPABASE_URL", "NEXT_PUBLIC_SUPABASE_ANON_KEY", "NEXT_PUBLIC_PAYPLE_CLIENT_KEY")) {
|
||||
foreach ($name in @("NEXT_PUBLIC_SUPABASE_URL", "NEXT_PUBLIC_SUPABASE_ANON_KEY", "NEXT_PUBLIC_PAYPLE_CLIENT_KEY", "NEXT_PUBLIC_VAPID_PUBLIC_KEY")) {
|
||||
$value = if ($envDict.ContainsKey($name)) { $envDict[$name] } else { [Environment]::GetEnvironmentVariable($name) }
|
||||
if ($name -eq "NEXT_PUBLIC_VAPID_PUBLIC_KEY" -and [string]::IsNullOrWhiteSpace($value)) {
|
||||
$value = if ($envDict.ContainsKey("WEBPUSH_VAPID_PUBLIC_KEY")) { $envDict["WEBPUSH_VAPID_PUBLIC_KEY"] } else { [Environment]::GetEnvironmentVariable("WEBPUSH_VAPID_PUBLIC_KEY") }
|
||||
}
|
||||
if ([string]::IsNullOrWhiteSpace($value)) {
|
||||
if ($name -eq "NEXT_PUBLIC_PAYPLE_CLIENT_KEY") {
|
||||
Write-Warning "$name is empty: the web app will build with Payple checkout disabled."
|
||||
continue
|
||||
}
|
||||
if ($name -eq "NEXT_PUBLIC_VAPID_PUBLIC_KEY") {
|
||||
Write-Warning "$name is empty: browser notifications will stay unavailable and fail closed."
|
||||
continue
|
||||
}
|
||||
throw "$name is required to build the web app image."
|
||||
}
|
||||
if ($value.Contains("`r") -or $value.Contains("`n")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue