Skip to content

Commit

Permalink
Fix setting from env
Browse files Browse the repository at this point in the history
  • Loading branch information
vycius committed Feb 13, 2024
1 parent e46a7de commit 7865e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Cookies from 'universal-cookie';
import { Resources } from './constants';

const cookies = new Cookies();
const env = import.meta.env;

interface GetAll {
resource?: string;
Expand Down Expand Up @@ -81,7 +82,7 @@ class Api {
private readonly apiBaseUrl: string;

constructor() {
this.apiBaseUrl = process.env.VITE_ZUVINIMAS_API_BASE_URL ?? '/api';
this.apiBaseUrl = env.VITE_ZUVINIMAS_API_BASE_URL ?? '/api';

this.AuthApiAxios = Axios.create();
this.AuthApiAxios.interceptors.request.use(
Expand Down

0 comments on commit 7865e3a

Please sign in to comment.