Skip to content

Commit

Permalink
fix: PROD 일 때 api BASE_URL 을 be end-point로 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeynii committed Nov 16, 2023
1 parent 1ee228c commit 58b542e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import axios from 'axios';

import { apiGenerator } from '@/apis/apiGenerator';

const BASE_URL = import.meta.env.PROD ? import.meta.env.VITE_API_URL : '/api';

const instance = axios.create({
baseURL: '/api',
baseURL: BASE_URL,
timeout: 30000,
});

Expand Down

0 comments on commit 58b542e

Please sign in to comment.