refactor: local_dev

This commit is contained in:
Tristan Yang
2023-02-26 21:15:56 +08:00
parent a32ebf852f
commit c256efc11a
+3 -2
View File
@@ -12,10 +12,11 @@ let prices: Price[] = [
}
];
// export const BASE_ORIGIN = `http://localhost:3333`;
const local_dev = `https://dev.voce.chat`;
// const local_dev = `http://localhost:3333`;
export const BASE_ORIGIN = process.env.REACT_APP_RELEASE
? `${location.origin}`
: `https://dev.voce.chat`;
: local_dev;
const BASE_URL = `${BASE_ORIGIN}/api`;
export const getLicensePriceList = () => {
const ps = prices.map((p, idx) => {