feat(dev): serve Vite and FastAPI through the existing UI endpoint

This commit is contained in:
2026-10-06 16:43:55 -03:00
parent 7285d22e6c
commit cb09e75bbd
4 changed files with 135 additions and 15 deletions
+3 -2
View File
@@ -14,13 +14,14 @@ export default defineConfig(({ mode }) => {
resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } },
server: {
host: "127.0.0.1",
port: 5173,
port: 8420,
strictPort: true,
ws: { path: "/__vite_hmr" },
allowedHosts: (env.S2S_DEV_ALLOWED_HOSTS ?? "")
.split(",")
.map((host) => host.trim())
.filter(Boolean),
proxy: createBackendProxy(env.S2S_BACKEND_URL ?? "http://127.0.0.1:8420"),
proxy: createBackendProxy(env.S2S_BACKEND_URL ?? "http://127.0.0.1:8421"),
},
build: { target: "es2022" },
};