We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e31b60 commit 9ceeb63Copy full SHA for 9ceeb63
curriculum-front/.env.local
@@ -1 +1 @@
1
-VUE_APP_API_URL=http://localhost:5050
+VITE_API_URL=http://localhost:5050
curriculum-front/.env.production
-VUE_APP_API_URL=https://studytracker.tech
+VITE_API_URL=https://studytracker.tech
curriculum-front/src/utils/axiosConfig.js
@@ -1,7 +1,7 @@
import axios from 'axios'
2
// import router from '../router'
3
4
-axios.defaults.baseURL = `${import.meta.env.VUE_APP_API_URL}/api/v1`
+axios.defaults.baseURL = `${import.meta.env.VITE_API_URL}/api/v1`
5
const token = localStorage.getItem('token')
6
axios.defaults.headers.common['Authorization'] = token ? `Bearer ${token}` : ''
7
0 commit comments