Skip to content

Commit 5ba17f3

Browse files
committed
or 'production' is on localhost
1 parent cd595c6 commit 5ba17f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/serverConfig.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
const isProduction = process.env.NODE_ENV === 'production';
2+
23
const serverConfig = {
34
DEV_PORT: 5656,
45
API_BASE_URL: isProduction
5-
? 'https://localhost:5656'
6+
? 'http://localhost:5656'
67
: 'http://localhost:5656',
78
// : 'http://localhost:8080',
89
API_BASE_URL2: isProduction
9-
? 'https://localhost:5656'
10+
? 'http://localhost:5656'
1011
: 'http://localhost:8080'
1112
};
1213
// module.exports = config;

config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const isProduction = process.env.NODE_ENV === 'production';
2+
23
const config = {
34
DEV_PORT: 5656,
45
API_BASE_URL: isProduction

0 commit comments

Comments
 (0)