Use production reverse proxy API

This commit is contained in:
MOHAN 2026-08-02 20:06:37 +05:30
parent 3947249b33
commit 84f1cda661
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
VITE_API_BASE_URL=http://localhost:4000/api
VITE_API_BASE_URL=https://rp.api.thedomainnest.com/api

View File

@ -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}`, {