Browse Source

fix: add missing runtime config for appInfo

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4608/head
mertmit 2 years ago
parent
commit
3897351e0d
  1. 4
      packages/nc-gui/composables/useGlobal/state.ts

4
packages/nc-gui/composables/useGlobal/state.ts

@ -84,8 +84,10 @@ export function useGlobalState(storageKey = 'nocodb-gui-v2'): State {
set: (val) => (storage.value.token = val), set: (val) => (storage.value.token = val),
}) })
const config = useRuntimeConfig()
const appInfo = ref<AppInfo>({ const appInfo = ref<AppInfo>({
ncSiteUrl: BASE_FALLBACK_URL, ncSiteUrl: config.public.ncBackendUrl || BASE_FALLBACK_URL,
authType: 'jwt', authType: 'jwt',
connectToExternalDB: false, connectToExternalDB: false,
defaultLimit: 0, defaultLimit: 0,

Loading…
Cancel
Save