Browse Source

fix(gui): base url correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3570/head
Pranav C 2 years ago
parent
commit
58e8b4c238
  1. 4
      packages/nc-gui/lib/constants.ts

4
packages/nc-gui/lib/constants.ts

@ -4,9 +4,7 @@ export const NOCO = 'noco'
export const SYSTEM_COLUMNS = ['id', 'title', 'created_at', 'updated_at']
export const BASE_URL =
import.meta.env.NC_BACKEND_URL || (import.meta.env.NODE_ENV === 'production' ? '..' : 'http://localhost:8080')
export const BASE_URL = import.meta.env.NC_BACKEND_URL || (process.env.NODE_ENV === 'production' ? '..' : 'http://localhost:8080')
/**
* Each permission value means the following
* `*` - which is wildcard, means all permissions are allowed

Loading…
Cancel
Save