Added default value for VITE_API_URL
This commit is contained in:
parent
2b130591fe
commit
58de4b202b
@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import Cookies from "js-cookie";
|
||||
|
||||
const API_URL = import.meta.env.VITE_API_URL;
|
||||
const API_URL = import.meta.env.VITE_API_URL || "http://localhost:5173";
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: API_URL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user