From e7c0f9f334a3a1ad41ab96c8ebfca30e1f221f8e Mon Sep 17 00:00:00 2001 From: Hymmel Date: Thu, 9 Oct 2025 09:36:40 +0200 Subject: [PATCH] jjj --- frontend/app/page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index 32dd66b..97192ef 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -2,7 +2,12 @@ import { FormEvent, useEffect, useMemo, useState } from 'react'; -const API_BASE = process.env.NEXT_PUBLIC_BACKEND_URL ?? 'http://localhost:4100'; +const defaultApiBase = + process.env.NODE_ENV === 'production' + ? 'https://backend.basetracker.lona-development.org' + : 'http://localhost:4100'; + +const API_BASE = process.env.NEXT_PUBLIC_BACKEND_URL ?? defaultApiBase; const API = { signup: `${API_BASE}/auth/signup`,