Use production reverse proxy API
This commit is contained in:
parent
3947249b33
commit
84f1cda661
@ -1 +1 @@
|
||||
VITE_API_BASE_URL=http://localhost:4000/api
|
||||
VITE_API_BASE_URL=https://rp.api.thedomainnest.com/api
|
||||
|
||||
@ -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}`, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user