环境变量测试

This commit is contained in:
joylink_fanyuhong 2024-04-02 17:48:09 +08:00
parent f7895a6ac7
commit 707c50aa0b

View File

@ -1,4 +1,5 @@
function getHost(): string { function getHost(): string {
console.log(process.env.ENV_MODE, process.env.NODE_ENV, '000');
if (process.env.ENV_MODE == 'test') { if (process.env.ENV_MODE == 'test') {
return 'test.joylink.club/bjrtsts-server'; return 'test.joylink.club/bjrtsts-server';
} else if (process.env.ENV_MODE == 'publish') { } else if (process.env.ENV_MODE == 'publish') {