Skip to content

Commit

Permalink
fix: Added dev env in all the env file
Browse files Browse the repository at this point in the history
  • Loading branch information
deechavhan098 committed Sep 4, 2024
1 parent c22858a commit 7784c4a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/admin/.env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_OAUTH_PROXY_ENABLED=false
REACT_APP_API_URL=https://alt.uniteframework.io/api/v1
REACT_APP_API_URL=https://alt-dev.uniteframework.io/api/v1
4 changes: 2 additions & 2 deletions packages/common-lib/.env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_OAUTH_PROXY_ENABLED=false
REACT_APP_API_URL=https://alt.uniteframework.io/api/v1
REACT_APP_BASE_URL=https://alt.uniteframework.io
REACT_APP_API_URL=https://alt-dev.uniteframework.io/api/v1
REACT_APP_BASE_URL=https://alt-dev.uniteframework.io
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const telemetryConfig = {
sid: 'session-id',
batchsize: 1,
mode: '',
host: 'https://alt.uniteframework.io', //TODO: Change this host and endpoint properly
host: process.env.REACT_APP_BASE_URL, //TODO: Change this host and endpoint properly
endpoint: '/telemetry/v1/telemetry',
tags: []
}
Expand Down
2 changes: 1 addition & 1 deletion packages/players/content-player/demoData.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/student-app/.env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_OAUTH_PROXY_ENABLED=false
REACT_APP_API_URL=https://alt.uniteframework.io/api/v1
REACT_APP_BASE_URL=https://alt.uniteframework.io
REACT_APP_API_URL=https://alt-dev.uniteframework.io/api/v1
REACT_APP_BASE_URL=https://alt-dev.uniteframework.io
2 changes: 1 addition & 1 deletion packages/student-app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function App() {
console.log("INSIDE tokenCheckInterval");
try {
const response = await fetch(
"https://alt.uniteframework.io/auth/realms/hasura-app/protocol/openid-connect/token/introspect",
`${process.env.REACT_APP_BASE_URL}/auth/realms/hasura-app/protocol/openid-connect/token/introspect`,
{
method: "POST",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion packages/student-app/src/api's/getNewAccessToken.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const getNewAccessToken = async () => {
console.log("INSIDE TOKEN API");
try {
const response = await axios.post(
"https://alt.uniteframework.io/auth/realms/hasura-app/protocol/openid-connect/token",
`${process.env.REACT_APP_BASE_URL}/auth/realms/hasura-app/protocol/openid-connect/token`,
new URLSearchParams({
client_id: "hasura-app",
refresh_token: token,
Expand Down
4 changes: 2 additions & 2 deletions packages/studentprogram/.env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_OAUTH_PROXY_ENABLED=false
REACT_APP_API_URL=https://alt.uniteframework.io/api/v1
REACT_APP_BASE_URL=https://alt.uniteframework.io
REACT_APP_API_URL=https://alt-dev.uniteframework.io/api/v1
REACT_APP_BASE_URL=https://alt-dev.uniteframework.io
2 changes: 1 addition & 1 deletion packages/studentprogram/src/pages/lessonList.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export default function LessonList({ footerLinks }) {
}
}}
// public_url="http://localhost:5000"
public_url="https://alt.uniteframework.io"
public_url={`${process.env.REACT_APP_BASE_URL}`}
/>
</VStack>
)
Expand Down

0 comments on commit 7784c4a

Please sign in to comment.