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