Skip to content

Commit

Permalink
[FE] Dev -> release (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunoc authored Mar 13, 2024
2 parents 1a21513 + 9d4a3a4 commit dd73b1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fe/src/service/axios/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import axios from 'axios';
import { getAccessToken, getUserInfo } from 'utils/localStorage';


// const { VITE_API_URL } = import.meta.env;
const { MODE } = import.meta.env;

export const BASE_API_URL = `/api`;
export const BASE_API_URL =
MODE === 'development' ? `https://foodymoody.site` : `/api`;


export const publicApi = axios.create({
Expand Down

0 comments on commit dd73b1b

Please sign in to comment.