feat(ui): auto proxy backend (#2238)

This commit is contained in:
YISH
2024-04-26 01:48:02 +08:00
committed by GitHub
parent f378dcc332
commit 4782c0f6fc
2 changed files with 31 additions and 19 deletions
+1 -4
View File
@@ -4,10 +4,7 @@ export const drawerWidth = 260
export const appDrawerWidth = 320
export const headerHeight = 80
export const maxScroll = 100000
export const baseURL =
import.meta.env.PROD === true
? window.location.origin
: window.location.origin.replace(`:${import.meta.env.VITE_PORT ?? '8080'}`, ':3000')
export const baseURL = window.location.origin
export const uiBaseURL = window.location.origin
export const FLOWISE_CREDENTIAL_ID = 'FLOWISE_CREDENTIAL_ID'
export const REDACTED_CREDENTIAL_VALUE = '_FLOWISE_BLANK_07167752-1a71-43b1-bf8f-4f32252165db'