wise-white
wise-white2y ago

Hi all, I’m hoping someone can help me

Hi all, I’m hoping someone can help me wrap my head around issues with API keys and environment variables in refine. Is it possible to avoid using environment variables that aren’t exposed to the browser (I.e., NEXTPUBLIC). Sorry I looked all around but couldn’t find an answer on how to secure my Airtable provider keys in refine😓
2 Replies
harsh-harlequin
harsh-harlequin2y ago
Hello @jawmes808, defining Environment variables in Refine has no difference from any other react application. you can look here for nextjs https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables
flat-fuchsia
flat-fuchsia2y ago
Thank you, @Alican Erdurmaz . I'm looking into making a custom data provider now, then sending requests through a nextjs API route. So far I'm happy to report that I have the lists working by doing this! I can provide a better write up when I'm done.

Did you find this page helpful?