Skip to content

Commit

Permalink
Merge pull request #30 from Choco-Express/dev
Browse files Browse the repository at this point in the history
🚀 Deploy
  • Loading branch information
taejun0 authored Sep 5, 2024
2 parents 201f279 + c559f3b commit b315762
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
13 changes: 4 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
"preview": "vite preview"
},
"dependencies": {

"axios": "^1.7.6",

"axios": "^1.7.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-frame-component": "^5.2.7",
Expand Down
4 changes: 4 additions & 0 deletions src/apis/instance.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import axios from "axios";
import Cookies from 'js-cookie';
const accessToken = Cookies.get('access_token');

export const instance = axios.create({
baseURL: import.meta.env.VITE_BASE_URL,
withCredentials: true,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${accessToken}`,
},
timeout: 10000, // 10초 타임아웃 설정
});
Expand Down

0 comments on commit b315762

Please sign in to comment.