added .env file

This commit is contained in:
Jabir 2023-11-02 18:46:06 +01:00
parent cdd7522bc5
commit 64a64113be
2 changed files with 2 additions and 1 deletions

1
.env.example Normal file
View file

@ -0,0 +1 @@
VITE_API_URL="http://localhost:8001"

View file

@ -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;