From c4f27193d2e00a0327e3a633098972ff84f59e75 Mon Sep 17 00:00:00 2001 From: woksin Date: Tue, 14 Jul 2026 12:21:53 +0200 Subject: [PATCH] Fix frontend build output path after Ingress to AuthProxy rename The Vite build still targeted ../Ingress/wwwroot, a project that no longer exists after the rename to AuthProxy, so npm run build never populated Source/AuthProxy/wwwroot. The frontend was therefore absent from the published image, and the publish pipeline's frontend artifact was silently empty (upload-artifact defaults to if-no-files-found: warn), which broke the downstream dotnet-publish download. - Point the Vite outDir at ../AuthProxy/wwwroot so the frontend builds into the AuthProxy web root and is bundled by dotnet publish. - Set if-no-files-found: error on the frontend artifact upload so an empty build output fails loudly at the source instead of failing cryptically downstream. Verified locally: npm run build now writes index.html + assets into Source/AuthProxy/wwwroot and creates no Ingress directory. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/publish.yml | 1 + Source/Web/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 05f7117..469e659 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -81,6 +81,7 @@ jobs: path: ./Source/AuthProxy/wwwroot retention-days: 1 include-hidden-files: true + if-no-files-found: error dotnet-publish: if: needs.release.outputs.publish == 'true' diff --git a/Source/Web/vite.config.ts b/Source/Web/vite.config.ts index 7be7788..c8d9ed4 100644 --- a/Source/Web/vite.config.ts +++ b/Source/Web/vite.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ tailwindcss(), ], build: { - outDir: '../Ingress/wwwroot', + outDir: '../AuthProxy/wwwroot', emptyOutDir: true, }, server: {