From f78be5613996da1d4dc47be1c40b20333e5b4c1c Mon Sep 17 00:00:00 2001 From: Mitchell Magro Date: Tue, 12 Aug 2025 15:00:57 +0200 Subject: [PATCH] fixing domain url in call --- app/dashboard/admin/users/page.tsx | 2 +- app/services/transactionsHistory.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dashboard/admin/users/page.tsx b/app/dashboard/admin/users/page.tsx index 05424f9..61f0dfa 100644 --- a/app/dashboard/admin/users/page.tsx +++ b/app/dashboard/admin/users/page.tsx @@ -3,7 +3,7 @@ import Users from "@/app/features/Pages/Admin/Users/users"; export default async function BackOfficeUsersPage() { const baseUrl = process.env.NEXT_PUBLIC_BASE_URL - ? `https://${process.env.NEXT_PUBLIC_BASE_URL}` + ? `${process.env.NEXT_PUBLIC_BASE_URL}` : "http://localhost:3000"; const res = await fetch(`${baseUrl}/api/dashboard/admin/users`, { cache: "no-store", // 👈 disables caching for SSR freshness diff --git a/app/services/transactionsHistory.ts b/app/services/transactionsHistory.ts index 30f5cbc..0c5e41e 100644 --- a/app/services/transactionsHistory.ts +++ b/app/services/transactionsHistory.ts @@ -5,7 +5,7 @@ export async function getTransactionsHistory({ }) { const baseUrl = process.env.NEXT_PUBLIC_BASE_URL - ? `https://${process.env.NEXT_PUBLIC_BASE_URL}` + ? `${process.env.NEXT_PUBLIC_BASE_URL}` : "http://localhost:3000"; const res = await fetch( `${baseUrl}/api/dashboard/transactionsHistory?${query}`,