From 48b8f052041c7b2275f86c9852eab5d8e15571ec Mon Sep 17 00:00:00 2001 From: frontgen Date: Wed, 30 Sep 2026 11:10:35 +0000 Subject: [PATCH] fix: relative base + runtime config for frontgen placement --- index.html | 2 ++ src/main.jsx | 2 +- vite.config.js | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f02eb79..d5a8213 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,8 @@ + + Office Asset Management diff --git a/src/main.jsx b/src/main.jsx index e3ce712..55bfd12 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -8,7 +8,7 @@ import './styles/global.css' ReactDOM.createRoot(document.getElementById("root")).render( - + diff --git a/vite.config.js b/vite.config.js index dc986bf..e60fc42 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,8 +2,8 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig(({ command }) => ({ - // The preview runs at https://preview-dev.getzino.in/asset-management/ - base: command === "build" ? "/asset-management/" : "/", + // Relative base: frontgen places one artifact at any mount path and injects . + base: "./", plugins: [react()], server: { port: 5173,