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 <noreply@anthropic.com>
This commit is contained in:
parent
0d2e7585b8
commit
5b55bd267b
@ -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 href>.
|
||||
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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user