Remix - Deployment
Identify the error in this Remix code snippet that tries to expose a secret API key to the client:
export function loader() {
return { apiKey: process.env.SECRET_API_KEY };
}
export default function Component() {
const { apiKey } = useLoaderData();
return <div>API Key: {apiKey}</div>;
}