(vars: { url: string })
| 4 | import { usePlausible } from "next-plausible"; |
| 5 | |
| 6 | export async function findKeyInsight(vars: { url: string }) { |
| 7 | const res = await fetch("/api/findKeyInsight", { |
| 8 | method: "POST", |
| 9 | headers: { |
| 10 | "Content-Type": "application/json", |
| 11 | }, |
| 12 | mode: "cors", |
| 13 | redirect: "follow", |
| 14 | referrer: "https://whatispoint.xyz/extension", |
| 15 | referrerPolicy: "origin", |
| 16 | body: JSON.stringify(vars), |
| 17 | }); |
| 18 | |
| 19 | if (!res.ok) { |
| 20 | throw new Error("Failed to find key insight"); |
| 21 | } |
| 22 | |
| 23 | return res.text(); |
| 24 | } |
| 25 | |
| 26 | const HowItWorks = () => { |
| 27 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected