Browse Source

fix(gui-v2): use location.origin

pull/3273/head
Wing-Kam Wong 2 years ago
parent
commit
e37f6b68fe
  1. 2
      packages/nc-gui-v2/composables/useGlobal/state.ts

2
packages/nc-gui-v2/composables/useGlobal/state.ts

@ -77,7 +77,7 @@ export function useGlobalState(storageKey = 'nocodb-gui-v2'): State {
})
const appInfo = ref<AppInfo>({
ncSiteUrl: process.env.NC_BACKEND_URL || (process.env.NODE_ENV === 'production' ? '..' : 'http://localhost:8080'),
ncSiteUrl: process.env.NC_BACKEND_URL || (process.env.NODE_ENV === 'production' ? location.origin : 'http://localhost:8080'),
authType: 'jwt',
connectToExternalDB: false,
defaultLimit: 0,

Loading…
Cancel
Save