Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: add env example

Stevenab4a670becae
diff --git a/web/.env.example b/web/.env.example
new file mode 100644
index 000000000..0f4e8826d
--- /dev/null
+++ b/web/.env.example
@@ -0,0 +1 @@
+VITE_API_BASE_URL=http://localhost:8081
diff --git a/web/src/helpers/api.ts b/web/src/helpers/api.ts
index 0d6a26a78..f318d1efe 100644
--- a/web/src/helpers/api.ts
+++ b/web/src/helpers/api.ts
@@ -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() {