Skip to content

Commit

Permalink
feat: proxy 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gogumalatte committed Aug 4, 2024
1 parent d3f4110 commit 72b317e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
33 changes: 0 additions & 33 deletions api/proxy.ts

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "doghae",
"version": "0.1.0",
"private": true,
"proxy": "https://doghae.site",
"dependencies": {
"@chakra-ui/react": "^2.8.2",
"@craco/craco": "^7.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from 'axios';

// axios 인스턴스 생성
const api = axios.create({
baseURL: '/api', // Vercel 프록시 경로
baseURL: '/', // Vercel 프록시 경로
});

// 요청 인터셉터 설정
Expand Down

0 comments on commit 72b317e

Please sign in to comment.