Skip to content

Commit

Permalink
fix: extended axios timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Oct 31, 2023
1 parent f34787f commit 15fd868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ app.use(

// setup axios
axios.defaults.baseURL = import.meta.env.VITE_ENDPOINT ?? './'
axios.defaults.timeout = 500
axios.defaults.timeout = 5000

axios.interceptors.request.use((config) => {
if (localStorage.getItem('token') != null) {
Expand Down

0 comments on commit 15fd868

Please sign in to comment.