19 lines
517 B
TypeScript
19 lines
517 B
TypeScript
import Users from "@/app/features/Pages/Admin/Users/users";
|
|
|
|
export default async function BackOfficeUsersPage() {
|
|
const baseUrl =
|
|
process.env.NEXT_PUBLIC_BASE_URL || process.env.VERCEL_URL
|
|
? `https://${process.env.VERCEL_URL}`
|
|
: "http://localhost:3000";
|
|
const res = await fetch(`${baseUrl}/api/dashboard/admin/users`, {
|
|
cache: "no-store", // 👈 disables caching for SSR freshness
|
|
});
|
|
const users = await res.json();
|
|
|
|
return (
|
|
<div>
|
|
<Users users={users} />
|
|
</div>
|
|
);
|
|
}
|