set fallback for remark_config.host

This commit is contained in:
Pavel Mineev
2021-01-12 16:21:31 -06:00
committed by Umputun
parent df92500bb4
commit eb6ef87d42
+1 -1
View File
@@ -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-';