Skip to content

Commit 809900b

Browse files
authored
Merge pull request #58 from codeit-maso/feature/chan
🐛 fix: 팀ID 환경변수 적용 및 Vercel 배포 라우팅 설정 추가
2 parents 657c68d + da74e84 commit 809900b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/api/getRecipients.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { api } from './api';
22

33
export default async function getRecipients() {
4-
const res = await api.get('/13-5/recipients/');
4+
const teamId = import.meta.env.VITE_TEAM_ID;
5+
const res = await api.get(`/${teamId}/recipients/`);
56
return res.data;
67
}

vercel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
3+
}

0 commit comments

Comments
 (0)