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

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

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`;