From eb6ef87d420faedbc4777d9d56cc0a066356f552 Mon Sep 17 00:00:00 2001 From: Pavel Mineev Date: Wed, 13 Jan 2021 01:19:29 +0300 Subject: [PATCH] set fallback for remark_config.host --- frontend/app/common/constants.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/common/constants.config.ts b/frontend/app/common/constants.config.ts index 2da61903..01bddacf 100644 --- a/frontend/app/common/constants.config.ts +++ b/frontend/app/common/constants.config.ts @@ -1,4 +1,4 @@ -export const BASE_URL = window.remark_config.host; +export const BASE_URL = window.remark_config.host || process.env.REMARK_URL!; export const NODE_ID = process.env.REMARK_NODE!; export const API_BASE = '/api/v1'; export const COMMENT_NODE_CLASSNAME_PREFIX = 'remark42__comment-';