feat: one gateway port with path-mounted frontends, markdown chat, collapsible sidebars
This commit is contained in:
+3
-4
@@ -3,8 +3,7 @@ import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const adminOrigin = process.env.ADMIN_ORIGIN ?? "http://127.0.0.1:62992";
|
||||
const apiOrigin = process.env.API_ORIGIN ?? "http://127.0.0.1:62994";
|
||||
const gatewayOrigin = process.env.GATEWAY_ORIGIN ?? "http://127.0.0.1:62990";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
@@ -22,8 +21,8 @@ export default defineConfig({
|
||||
],
|
||||
server: {
|
||||
proxy: {
|
||||
"/admin/auth": adminOrigin,
|
||||
"/api": apiOrigin,
|
||||
"/admin/auth": gatewayOrigin,
|
||||
"/api": gatewayOrigin,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user