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