()
| 190 | } |
| 191 | |
| 192 | export async function getCompanies() { |
| 193 | "use cache"; |
| 194 | cacheLife("hours"); |
| 195 | cacheTag("companies"); |
| 196 | |
| 197 | const supabase = await createClient(); |
| 198 | |
| 199 | return fetchAllPages((from, to) => |
| 200 | supabase |
| 201 | .from("companies") |
| 202 | .select("id, name, slug, image, location") |
| 203 | .order("created_at", { ascending: false }) |
| 204 | .range(from, to), |
| 205 | ); |
| 206 | } |
| 207 | |
| 208 | export async function getFeaturedMCPs({ |
| 209 | onlyPremium, |
no test coverage detected