From 4d62d0bf50df4197018661966477a5ebb5ed5b20 Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Mon, 9 Feb 2026 18:48:56 +0100 Subject: [PATCH] Fix deploy app-base rewrite path for published wwwroot --- scripts/deploy-ftp.ps1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/deploy-ftp.ps1 b/scripts/deploy-ftp.ps1 index 48c1c7e..fbc3014 100644 --- a/scripts/deploy-ftp.ps1 +++ b/scripts/deploy-ftp.ps1 @@ -112,9 +112,14 @@ function Set-FrontendAppBaseMeta { [Parameter(Mandatory = $true)][string]$BasePath ) - $indexPath = Join-Path $PublishDir "index.html" - if (-not (Test-Path $indexPath)) { - throw "Publish output is missing index.html at '$indexPath'." + $candidatePaths = @( + (Join-Path $PublishDir "wwwroot\index.html"), + (Join-Path $PublishDir "index.html") + ) + + $indexPath = $candidatePaths | Where-Object { Test-Path $_ } | Select-Object -First 1 + if ([string]::IsNullOrWhiteSpace($indexPath)) { + throw "Publish output is missing index.html. Checked: $($candidatePaths -join ", ")." } $pattern = ''