Skip to content

Commit

Permalink
23.12.118: process env fix [WTEL-3984]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Dec 15, 2023
1 parent 0147bfa commit 618d712
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "23.12.117",
"version": "23.12.118",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/api/axios/generateInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from 'axios';
// 'X-Webitel-Access' ~ 'X-Access-Token'
const generateInstance = ({ interceptors } = {}) => {
const instance = axios.create({
baseURL: process ? process.env.VUE_APP_API_URL : import.meta.env.VITE_API_URL,
baseURL: process?.env?.VUE_APP_API_URL || import.meta.env.VITE_API_URL,
headers: {
'X-Webitel-Access': localStorage.getItem('access-token') || '',
},
Expand Down
2 changes: 1 addition & 1 deletion src/modules/FilesExport/scripts/generateMediaURL.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const generateMediaURL = (id) => {
const token = localStorage.getItem('access-token');
const BASE_URL = process ? process.env.VUE_APP_API_URL : import.meta.env.VITE_API_URL;
const BASE_URL = process?.env?.VUE_APP_API_URL || import.meta.env.VITE_API_URL;
return `${BASE_URL}/storage/recordings/${id}/stream?access_token=${token}`;
};

Expand Down
2 changes: 1 addition & 1 deletion src/modules/Userinfo/components/the-auth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<script>
import AuthAPI from '../api/auth';
const authURL = process ? process.env.VUE_APP_AUTH_MODULE_URL : import.meta.env.VITE_AUTH_MODE_URL;
const authURL = process?.env?.VUE_APP_AUTH_MODULE_URL || import.meta.env.VITE_AUTH_MODE_URL;
export default {
name: 'Auth',
Expand Down

0 comments on commit 618d712

Please sign in to comment.