From 58e8b4c238737840d67dffd80e84bbe2799d4c6b Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sun, 6 Nov 2022 11:44:01 +0530 Subject: [PATCH] fix(gui): base url correction Signed-off-by: Pranav C --- packages/nc-gui/lib/constants.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nc-gui/lib/constants.ts b/packages/nc-gui/lib/constants.ts index 9f59a984ca..3c197e05b1 100644 --- a/packages/nc-gui/lib/constants.ts +++ b/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