This commit is contained in:
2026-03-19 16:36:41 +07:00
parent 1999395f3c
commit 7eddfb28b0
5 changed files with 14 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || "http://localhost:4000/api";
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || "/api";
async function request(path, options = {}) {
const response = await fetch(`${API_BASE_URL}${path}`, {