From 09e7e492d13acda1f6420a7e00125f4ec8a716ce Mon Sep 17 00:00:00 2001 From: dutexion Date: Thu, 29 Feb 2024 00:13:32 +0900 Subject: [PATCH] =?UTF-8?q?fix=20::=20=EB=A9=94=EC=9D=B8=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20no=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/user/src/apis/project.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/user/src/apis/project.ts b/packages/user/src/apis/project.ts index 08cb9ab..bb6f6c4 100644 --- a/packages/user/src/apis/project.ts +++ b/packages/user/src/apis/project.ts @@ -1,3 +1,4 @@ +import axios from 'axios'; import { instance } from './instance'; import { projectType } from '../types/projectType'; import { toast } from 'react-toastify'; @@ -9,7 +10,8 @@ type createProjectType = { }; export const getProjects = async () => { - return await instance.get('/project/list'); + const url = import.meta.env.VITE_SERVER_BASE_URL; + return await axios.get(`${url}/project/list`); }; export const getDetailProject = async (id: string) => {