Fix routing (#929)

* fix router and move graph related parts to GraphView.vue

* (fix) add back child element in UnloadWindowConfirmDialog

* (cleanup) remove empty callback

* (fix) routing issue when base url is not webroot

* add back DEV_SERVER_COMFYUI_URL
This commit is contained in:
ArtificialLab
2024-09-23 07:09:10 +04:00
committed by Chenlei Hu
parent 5e51ae37cf
commit 9c7ea5bd87
6 changed files with 22 additions and 12 deletions

View File

@@ -90,9 +90,10 @@ 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: '',
base: VITE_BASE_URL,
server: {
proxy: {
'/internal': {