import { apiFetch } from "#lib/api"; import { IArtistWithFavs } from "#entities/profiles"; import { IS_DEVELOPMENT } from "#env/derived-vars"; export async function fetchProfiles(): Promise { const path = IS_DEVELOPMENT ? "/creators" : "/creators.txt"; const result = await apiFetch(path, { method: "GET", }); return result; }