Skip to content

Commit f27b467

Browse files
committed
chore: fix set-env script
1 parent c54cdc0 commit f27b467

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

set-env.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ const prodEnvConfig = {
1919
const 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
2327
const 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

0 commit comments

Comments
 (0)