From 5b55bd267b65404ae882b22e5848f1f1ecd35b68 Mon Sep 17 00:00:00 2001 From: "vamsi.balaga" Date: Tue, 27 Oct 2026 18:59:28 +0530 Subject: [PATCH] fix: build files into static/ so /assets reloads The /assets route shared its URL with Vite's assets/ build folder, so nginx found a real folder with no index.html and answered 403 on reload or a direct link. Co-Authored-By: Claude Opus 5.5 --- vite.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.js b/vite.config.js index d14b075..201ae8f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,9 @@ import react from "@vitejs/plugin-react"; export default defineConfig(({ command }) => ({ // Relative base: frontgen places one artifact at any mount path and injects . base: "./", + // Not "assets": the app has an /assets route, and nginx answers 403 for a real + // folder with no index.html, so reloading /asset-management/assets/ broke. + build: { assetsDir: "static" }, plugins: [react()], server: { port: 5173,