import { serverFetchJson } from "@/app/utils/fetchUtil"; import { BASE_API_URL } from "@/config/api"; import { cache } from "react"; import "server-only"; export interface TeamResult { action: any; id: number; name: string; code: string; description: string; } export const fetchTeam = cache(async () => { return serverFetchJson(`${BASE_API_URL}/team`, { next: { tags: ["team"] }, }); });