Skip to content

Commit

Permalink
chore: fix set-env script
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Jun 13, 2024
1 parent c54cdc0 commit f27b467
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion set-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ const prodEnvConfig = {
const envConfig: { [key: string]: any } =
process.env.ANGULAR_ENV === 'production' ? prodEnvConfig : devEnvConfig;

const tokenUrl = process.env.STREAM_TOKEN_URL
? `'${process.env.STREAM_TOKEN_URL}'`
: `''`;

// `environment.ts` file structure
const envConfigFile = `export const environment = {
${Object.keys(envConfig).map((k) => `${k}: ${envConfig[k]},`)}
apiKey: '${process.env.STREAM_API_KEY}',
userId: '${process.env.STREAM_USER_ID}',
userToken: '${process.env.STREAM_USER_TOKEN}',
tokenUrl: '${process.env.STREAM_TOKEN_URL}',
tokenUrl: ${tokenUrl},
channelsFilter: ${process.env.STREAM_CHANNELS_FILTER}
};
// I am a generated file, do not modify me directly, see set-env script
Expand Down

0 comments on commit f27b467

Please sign in to comment.