chore: add env example

pull/2933/head
Steven 1 year ago
parent ce663efc14
commit ab4a670bec

@ -0,0 +1 @@
VITE_API_BASE_URL=http://localhost:8081

@ -1,7 +1,7 @@
import axios from "axios";
import { Resource } from "@/types/proto/api/v2/resource_service";
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL || window.location.origin;
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL || "";
axios.defaults.withCredentials = true;
export function getSystemStatus() {

Loading…
Cancel
Save