Skip to content

Commit 9ceeb63

Browse files
authored
Fix connection to back end (#168)
* Add theme toggle and update/fix styling * Fix broken api calls
1 parent 1e31b60 commit 9ceeb63

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

curriculum-front/.env.local

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VUE_APP_API_URL=http://localhost:5050
1+
VITE_API_URL=http://localhost:5050

curriculum-front/.env.production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VUE_APP_API_URL=https://studytracker.tech
1+
VITE_API_URL=https://studytracker.tech

curriculum-front/src/utils/axiosConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from 'axios'
22
// import router from '../router'
33

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

0 commit comments

Comments
 (0)