diff --git a/src/lib/api.js b/src/lib/api.js index 36cfc29..3899ccc 100644 --- a/src/lib/api.js +++ b/src/lib/api.js @@ -1,4 +1,4 @@ -export const API_BASE = "https://rp.api.thedomainnest.com/api"; +export const API_BASE = import.meta.env.VITE_API_BASE || "/api"; async function request(path, { method = "GET", body, headers } = {}) { const response = await fetch(`${API_BASE}${path}`, {