({ request }: LoaderFunctionArgs)
| 7 | import { authenticate } from "../shopify.server"; |
| 8 | |
| 9 | export const loader = async ({ request }: LoaderFunctionArgs) => { |
| 10 | await authenticate.admin(request); |
| 11 | |
| 12 | return { apiKey: process.env.SHOPIFY_API_KEY || "" }; |
| 13 | }; |
| 14 | |
| 15 | export default function App() { |
| 16 | const { apiKey } = useLoaderData<typeof loader>(); |
nothing calls this directly
no outgoing calls
no test coverage detected