added .env file
This commit is contained in:
parent
cdd7522bc5
commit
64a64113be
2 changed files with 2 additions and 1 deletions
1
.env.example
Normal file
1
.env.example
Normal file
|
@ -0,0 +1 @@
|
|||
VITE_API_URL="http://localhost:8001"
|
|
@ -1,6 +1,6 @@
|
|||
import axios from "axios";
|
||||
|
||||
axios.defaults.baseURL = "http://localhost:8000"
|
||||
axios.defaults.baseURL = import.meta.env.VITE_API_URL;
|
||||
axios.defaults.headers.post["Content-Type"] = "application/json";
|
||||
axios.interceptors.request.use((request) => {
|
||||
return request;
|
||||
|
|
Loading…
Reference in a new issue