mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 07:01:17 +08:00
chore: add env example
This commit is contained in:
parent
ce663efc14
commit
ab4a670bec
2 changed files with 2 additions and 1 deletions
1
web/.env.example
Normal file
1
web/.env.example
Normal file
|
@ -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…
Reference in a new issue