From d942425cb11c4726a215dda6d36317b60e752f28 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 13 Apr 2026 20:52:49 +0200 Subject: [PATCH] fix: use relative base path for Vite assets When the server-ui is deployed under a subpath (/t/{slug}/), absolute asset paths (/assets/...) resolve to the domain root instead of the subpath, causing 404s. Using './' makes asset URLs relative to the HTML page, so they resolve correctly regardless of mount path. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/vite.config.ts b/ui/vite.config.ts index af041a4d..b4e74e8d 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -27,7 +27,7 @@ export default defineConfig({ optimizeDeps: { include: ['swagger-ui-dist/swagger-ui-bundle'], }, - base: '/', + base: './', build: { outDir: 'dist', },