We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c323fbf commit 07a6551Copy full SHA for 07a6551
2 files changed
env.sample
@@ -0,0 +1 @@
1
+REACT_APP_BACKEND_SERVER='https://YOUR_API_URL/';
src/config/constant.js
@@ -1,7 +1,14 @@
+let BACKEND_SERVER = null;
2
+if (process.env.REACT_APP_BACKEND_SERVER) {
3
+ BACKEND_SERVER = process.env.REACT_APP_BACKEND_SERVER;
4
+} else {
5
+ BACKEND_SERVER = "http://localhost:5000/api/";
6
+}
7
+
8
export const BASENAME = ''; // don't add '/' at end off BASENAME
9
export const BASE_URL = '/app/dashboard/default';
10
export const BASE_TITLE = ' | React Datta Able ';
-export const API_SERVER = 'http://localhost:5000/api/';
11
+export const API_SERVER = BACKEND_SERVER;
12
13
export const CONFIG = {
14
layout: 'vertical', // disable on free version
0 commit comments