Skip to content

Commit

Permalink
added environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
divija-zemoso committed Sep 27, 2022
1 parent 3ab9704 commit e3e4472
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"bootstrap": "~5.1.0",
"cors": "~2.8.5",
"date-fns": "~2.28.0",
"dotenv": "~16.0.2",
"escape-string-regexp": "~4.0.0",
"i18next": "~21.6.0",
"i18next-browser-languagedetector": "~6.1.0",
Expand Down
9 changes: 5 additions & 4 deletions src/scheduling/appointments/service/Appointments.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import axios from 'axios'
import dotenv from 'dotenv'
dotenv.config()

const endpoint = 'https://xchange-blitz.xcaliberapis.com/api/v1'
const endpoint = `${process.env.REACT_APP_ENDPOINT}`

const config = {
headers: {
Authorization:
'Bearer U2FsdGVkX19caQ9ns7zpCc63TYcjet5+EwgvjJdFhoamk4ySvXGPdtFeEkmagYxF6V7M48JruyIoOKjRCQW86DYvsmkGugdlHEiaxV91ImmzDbkv0bfJ1haN9leQkbQecf0LpRSKzhBBRGefuihTM1CLaqJzjhvTCOQwHMVXiZpEToQSxp/EzRSnFYg80uLaqw465Pgl53yCTe4CyvES4Lrb6zGVd9nAyNDIutijH015OaYNIrlQJRJujlZl6qk6qzV3gEwcJPvfndw0/XdtsCwG/+AGVsqdI4DxifDUGDnIdsqnxTc0MrH8EUOlYT/BWZAVuZdVfqK4qsW+pPnLdCP4N3AqaIG8UKGM8yRlKsKAxTxUPbOSvHlJnyfCOazPOzyICqPuIpkUSh64enj8qw==',
'x-source-id': '24f8d20c-fd00-4068-9f47-90887a1666ce',
Authorization: `${process.env.REACT_APP_AUTHORIZATION}`,
'x-source-id': `${process.env.REACT_APP_XSOURCEID}`,
},
}

Expand Down

0 comments on commit e3e4472

Please sign in to comment.