Femi
Error when Using 'Use Client' in Next 13 App folder
I have a project where I'm using the Next13 app folder. I tried putting all my APIs inside the app/api folder, but when I tried to call the api in the pages where I want to use them, I get
"Error: You are trying to use Xata from the browser, which is potentially a non-secure environment. If you understand the security concerns, such as leaking your credentials, pass
enableBrowser: true
to the client options to remove this error."
If I'm not using "Use client" it works.4 replies