({ request })
| 11 | export const links = () => [{ rel: "stylesheet", href: polarisStyles }]; |
| 12 | |
| 13 | export async function loader({ request }) { |
| 14 | await authenticate.admin(request); |
| 15 | |
| 16 | const url = new URL(request.url); |
| 17 | |
| 18 | return json({ |
| 19 | apiKey: process.env.SHOPIFY_API_KEY, |
| 20 | host: url.searchParams.get("host"), |
| 21 | }); |
| 22 | } |
| 23 | |
| 24 | export default function App() { |
| 25 | const { apiKey } = useLoaderData(); |
nothing calls this directly
no outgoing calls
no test coverage detected