chore: add env example

This commit is contained in:
Steven 2024-02-05 00:33:07 +08:00
parent ce663efc14
commit ab4a670bec
2 changed files with 2 additions and 1 deletions

1
web/.env.example Normal file
View file

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

View file

@ -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() {