Fix routing (#939)

* reinstate working routing code and remove broken code

* forward object_info

* remove object_info bit
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-09-24 15:01:23 +09:00
committed by Chenlei Hu
parent 35579e644e
commit 7b344d5629
5 changed files with 15 additions and 19 deletions

View File

@@ -90,10 +90,9 @@ function getModuleName(id: string): string {
}
const DEV_SERVER_COMFYUI_URL = process.env.DEV_SERVER_COMFYUI_URL || 'http://127.0.0.1:8188'
const VITE_BASE_URL = process.env.VITE_BASE_URL || '/'
export default defineConfig({
base: VITE_BASE_URL,
base: '',
server: {
proxy: {
'/internal': {
@@ -115,6 +114,11 @@ export default defineConfig({
'/ws': {
target: DEV_SERVER_COMFYUI_URL,
ws: true
},
'/testsubrouteindex': {
target: 'http://localhost:5173',
rewrite: (path) => path.substring('/testsubrouteindex'.length)
}
}
},