Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 22f8259

Browse files
Fix issue where environment variable is not being saved as a string
1 parent 7e0411c commit 22f8259

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

set-env.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ const targetPath = './ui/src/config/config.js';
44

55
const envConfigFile = `
66
const config = {
7-
API_URL: ${process.env.API_URL} || 'http://localhost:3000/api/v1',
8-
WS_URL: ${process.env.WS_URL} || 'ws://localhost:3000',
7+
API_URL: '${process.env.API_URL || 'http://localhost:3000'}/api/v1',
8+
WS_URL: '${process.env.WS_URL || 'ws://localhost:3000'}',
99
DEFAULT_MESSAGE_COUNT: ${process.env.DEFAULT_MESSAGE_COUNT} || 20,
10-
TC_AUTH_URL: ${process.env.TC_AUTH_URL} || 'https://accounts.topcoder-dev.com',
11-
ACCOUNTS_APP_CONNECTOR: ${process.env.ACCOUNTS_APP_CONNECTOR} || 'https://accounts.topcoder-dev.com/connector.html',
12-
APP_URL: ${process.env.APP_URL} || 'http://localhost:3000',
10+
TC_AUTH_URL: '${process.env.TC_AUTH_URL || 'https://accounts.topcoder-dev.com'}',
11+
ACCOUNTS_APP_CONNECTOR: '${process.env.ACCOUNTS_APP_CONNECTOR || 'https://accounts.topcoder-dev.com/connector.html'}',
12+
APP_URL: '${process.env.APP_URL || 'http://localhost:3000'}',
1313
};
1414
1515
export default config;

0 commit comments

Comments
 (0)