File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,17 @@ const prodEnvConfig = {
1919const envConfig : { [ key : string ] : any } =
2020 process . env . ANGULAR_ENV === 'production' ? prodEnvConfig : devEnvConfig ;
2121
22+ const tokenUrl = process . env . STREAM_TOKEN_URL
23+ ? `'${ process . env . STREAM_TOKEN_URL } '`
24+ : `''` ;
25+
2226// `environment.ts` file structure
2327const envConfigFile = `export const environment = {
2428 ${ Object . keys ( envConfig ) . map ( ( k ) => `${ k } : ${ envConfig [ k ] } ,` ) }
2529 apiKey: '${ process . env . STREAM_API_KEY } ',
2630 userId: '${ process . env . STREAM_USER_ID } ',
2731 userToken: '${ process . env . STREAM_USER_TOKEN } ',
28- tokenUrl: ' ${ process . env . STREAM_TOKEN_URL } ' ,
32+ tokenUrl: ${ tokenUrl } ,
2933 channelsFilter: ${ process . env . STREAM_CHANNELS_FILTER }
3034 };
3135 // I am a generated file, do not modify me directly, see set-env script
You can’t perform that action at this time.
0 commit comments