Skip to content

Commit

Permalink
Fix connection to back end (#168)
Browse files Browse the repository at this point in the history
* Add theme toggle and update/fix styling

* Fix broken api calls
  • Loading branch information
gwenf authored Sep 27, 2024
1 parent 1e31b60 commit 9ceeb63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion curriculum-front/.env.local
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VUE_APP_API_URL=http://localhost:5050
VITE_API_URL=http://localhost:5050
2 changes: 1 addition & 1 deletion curriculum-front/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VUE_APP_API_URL=https://studytracker.tech
VITE_API_URL=https://studytracker.tech
2 changes: 1 addition & 1 deletion curriculum-front/src/utils/axiosConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios'
// import router from '../router'

axios.defaults.baseURL = `${import.meta.env.VUE_APP_API_URL}/api/v1`
axios.defaults.baseURL = `${import.meta.env.VITE_API_URL}/api/v1`
const token = localStorage.getItem('token')
axios.defaults.headers.common['Authorization'] = token ? `Bearer ${token}` : ''

Expand Down

0 comments on commit 9ceeb63

Please sign in to comment.