johncmacy
Error: Option apiKey is required in Remix loader
Hello, I've been trying to query from Xata in a Remix loader, and am getting this error.
I'm aware that queries should only be run on the server, but from what I understand, Remix loaders only run on the server, so I don't think that's the issue.
I found a workaround, which is to manually add
apiKey
and branch
to the XataClient
instance that is generated by the CLI.
But that means I have to manually do that every time I update the schema. Is there something obvious I'm missing?
Thanks!4 replies