@FarisPalayi
Posted
Excellent workπ
Try to hide the api key if you can. (For example, by using environment variables or Netlify's serverless functions). Happy coding β¨
Marked as helpful
@danmlarsen
Posted
@FarisPalayi Thanks π I've hidden it from GitHub by using a .env file now. But I'm pretty sure it is still exposed in the .js?
@FarisPalayi
Posted
@danmlarsen yes, it is still exposed in the JavaScript file. You can check that by going to the source tab of dev tools.
Since you don't have server side code, I suggest you to use Netlify's serverless functions. Take a look at these sources to understand how environment variables works video, article
And how to use the Netlify functions - How To Hide API Keys Using Netlify
@danmlarsen
Posted
@FarisPalayi I will take a look at those, thanks π