feat(dev): serve Vite and FastAPI through the existing UI endpoint
This commit is contained in:
@@ -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" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user