更新 sub-store.js 兼容 node 服务端

This commit is contained in:
dompling committed 2021-10-18 09:17:48 +08:00
1 parent 046b70a561
commit bcfcd6d91d
3 files changed
+13 -6

No files matched your search

+4 -3
View File
@@ -1,3 +1,4 @@
const DEBUG = process.env.NODE_ENV === "development";
// export const BACKEND_BASE = DEBUG ? `http://localhost:3000` : `https://sub.store`;
export const BACKEND_BASE = DEBUG ? `https://sub.store:9999` : `https://sub.store`;
const DEBUG = process.env.NODE_ENV === 'development';
const domain = process.env.DOMIAN || 'https://sub.store';
export const BACKEND_BASE = DEBUG ? `http://localhost:3000` : domain;
// export const BACKEND_BASE = DEBUG ? `https://sub.store:9999` : `https://sub.store`;