mirror of
https://github.com/gosticks/web.git
synced 2026-06-28 21:20:07 +00:00
apply @mcat12's suggestion. I agree, it is cleaner to read!
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
@@ -10,13 +10,8 @@
|
||||
|
||||
import { Config } from "./config";
|
||||
|
||||
let apiUrlBase;
|
||||
|
||||
if (process.env.REACT_APP_CUSTOM_API_URL) {
|
||||
apiUrlBase = process.env.REACT_APP_CUSTOM_API_URL;
|
||||
} else {
|
||||
apiUrlBase = process.env.PUBLIC_URL;
|
||||
}
|
||||
const apiUrlBase =
|
||||
process.env.REACT_APP_CUSTOM_API_URL || process.env.PUBLIC_URL;
|
||||
|
||||
export default {
|
||||
developmentMode: true,
|
||||
|
||||
Reference in New Issue
Block a user