Skip to content

Commit

Permalink
Issue #232165 fix: env variable updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmore committed Jan 11, 2025
1 parent 7c280c6 commit a011e80
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-rig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
REACT_APP_API_KEY=${{ secrets.REACT_APP_API_KEY }} \
REACT_APP_MODE=play \
REACT_APP_authToken="" \
REACT_APP_AUTHTOKEN="" \
REACT_APP_PID=learner-ai-story-demo \
REACT_APP_UID=anonymous \
REACT_APP_ID=all.ll.app \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-tn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Build and Package Application
env:
REACT_APP_MODE: ${{ vars.REACT_APP_MODE }}
REACT_APP_authToken: ${{ vars.REACT_APP_authToken }}
REACT_APP_AUTHTOKEN: ${{ vars.REACT_APP_AUTHTOKEN }}
REACT_APP_PID: ${{ vars.REACT_APP_PID }}
REACT_APP_UID: ${{ vars.REACT_APP_UID }}
REACT_APP_ID: ${{ vars.REACT_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-rig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
REACT_APP_API_KEY=${{ secrets.REACT_APP_API_KEY }} \
REACT_APP_MODE=play \
REACT_APP_authToken="" \
REACT_APP_AUTHTOKEN="" \
REACT_APP_PID=learner-ai-story-demo \
REACT_APP_UID=anonymous \
REACT_APP_ID=all.rig.app \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-tn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Build and Package Application
env:
REACT_APP_MODE: ${{ vars.REACT_APP_MODE }}
REACT_APP_authToken: ${{ vars.REACT_APP_authToken }}
REACT_APP_AUTHTOKEN: ${{ vars.REACT_APP_AUTHTOKEN }}
REACT_APP_PID: ${{ vars.REACT_APP_PID }}
REACT_APP_UID: ${{ vars.REACT_APP_UID }}
REACT_APP_ID: ${{ vars.REACT_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-tn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Build and Package Application
env:
REACT_APP_MODE: ${{ vars.REACT_APP_MODE }}
REACT_APP_authToken: ${{ vars.REACT_APP_authToken }}
REACT_APP_AUTHTOKEN: ${{ vars.REACT_APP_AUTHTOKEN }}
REACT_APP_PID: ${{ vars.REACT_APP_PID }}
REACT_APP_UID: ${{ vars.REACT_APP_UID }}
REACT_APP_ID: ${{ vars.REACT_APP_ID }}
Expand Down
14 changes: 7 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ function App() {
did: did, // Unique id to identify the device or browser
uid: 'anonymous',
channel: process.env.REACT_APP_CHANNEL, // Unique id of the channel(Channel ID)
env: process.env.REACT_APP_env,
env: process.env.REACT_APP_ENV,

pdata: {
// optional
id: process.env.REACT_APP_id, // Producer ID. For ex: For sunbird it would be "portal" or "genie"
ver: process.env.REACT_APP_ver, // Version of the App
pid: process.env.REACT_APP_pid, // Optional. In case the component is distributed, then which instance of that component
id: process.env.REACT_APP_ID, // Producer ID. For ex: For sunbird it would be "portal" or "genie"
ver: process.env.REACT_APP_VER, // Version of the App
pid: process.env.REACT_APP_PID, // Optional. In case the component is distributed, then which instance of that component
},
tags: [
// Defines the tags data
'',
],
timeDiff: 0, // Defines the time difference// Defines the object roll up data
host: process.env.REACT_APP_host, // Defines the from which domain content should be load
endpoint: process.env.REACT_APP_endpoint,
apislug: process.env.REACT_APP_apislug,
host: process.env.REACT_APP_HOST, // Defines the from which domain content should be load
endpoint: process.env.REACT_APP_ENDPOINT,
apislug: process.env.REACT_APP_APISLUG,
},
config: {},
// tslint:disable-next-line:max-line-length
Expand Down
2 changes: 1 addition & 1 deletion src/components/AudioRecorderTamil/AudioRecorderTamil.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function Mic({
var audioFileName = `${process.env.REACT_APP_CHANNEL}/${localStorage.getItem('contentSessionId')===null? localStorage.getItem('allAppContentSessionId'):localStorage.getItem('contentSessionId')}-${Date.now()}-${getContentId}.wav`;

const command = new PutObjectCommand({
Bucket: process.env.REACT_APP_AWS_s3_BUCKET_NAME,
Bucket: process.env.REACT_APP_AWS_S3_BUCKET_NAME,
Key: audioFileName,
Body: Uint8Array.from(window.atob(asrInput), (c) => c.charCodeAt(0)),
ContentType: 'audio/wav'
Expand Down
2 changes: 1 addition & 1 deletion src/components/VoiceCompair/VoiceCompair.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const VoiceCompair = props => {
}-${Date.now()}-${getContentId}.wav`;

const command = new PutObjectCommand({
Bucket: process.env.REACT_APP_AWS_s3_BUCKET_NAME,
Bucket: process.env.REACT_APP_AWS_S3_BUCKET_NAME,
Key: audioFileName,
Body: Uint8Array.from(window.atob(base64Data), c =>
c.charCodeAt(0)
Expand Down
10 changes: 5 additions & 5 deletions src/services/telementryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const initialize = ({ context, config, metadata }) => {
authtoken: context.authToken || '',
uid: 'anonymous',
sid: context.sid,
batchsize: process.env.REACT_APP_batchsize,
batchsize: process.env.REACT_APP_BATCHSIZE,
mode: context.mode,
host: context.host,
apislug: context.apislug,
Expand Down Expand Up @@ -195,11 +195,11 @@ export const getEventOptions = () => {
context: {
pdata: {
// optional
id: process.env.REACT_APP_id, // Producer ID. For ex: For sunbird it would be "portal" or "genie"
ver: process.env.REACT_APP_ver, // Version of the App
pid: process.env.REACT_APP_pid, // Optional. In case the component is distributed, then which instance of that component
id: process.env.REACT_APP_ID, // Producer ID. For ex: For sunbird it would be "portal" or "genie"
ver: process.env.REACT_APP_VER, // Version of the App
pid: process.env.REACT_APP_PID, // Optional. In case the component is distributed, then which instance of that component
},
env: process.env.REACT_APP_env,
env: process.env.REACT_APP_ENV,
uid: `${
isBuddyLogin
? emis_username + '/' + buddyUserId
Expand Down

0 comments on commit a011e80

Please sign in to comment.