Skip to content

Commit

Permalink
♻️ WV-35 refactor : 환경변수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hayoung78 committed Jan 6, 2025
1 parent d5bd1d0 commit f7a81a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/player/apis.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { CoachResponse } from "./types";

// api/player/coachlist
const BASE_URL = process.env.NEXT_PUBLIC_API_KEY;
console.log(BASE_URL, "나 베이스유알엘");

export const getCoachList = async (): Promise<CoachInfo[]> => {
const BASE_URL = process.env.NEXT_PUBLIC_API_KEY;
console.log(BASE_URL, "나 베이스유알엘");
const res = await fetch(`${BASE_URL}/player/coachlist`, { method: "GET" });

if (!res.ok) {
Expand Down

0 comments on commit f7a81a8

Please sign in to comment.