"server only" import { BASE_API_URL } from '@/config/api'; import { serverFetchJson } from '@/app/utils/fetchUtil'; import { cache } from "react"; export interface ShopCombo { id: number; value: number; // id label: string; } export const fetchSupplierCombo = cache(async() => { return serverFetchJson(`${BASE_API_URL}/shop/combo/supplier`, { method: "GET", headers: { "Content-Type": "application/json"}, next: { tags: ["supplierCombo"] } }) })