harshit1142 / NewsX

https://news-x-hazel.vercel.app/
MIT License
5 stars 3 forks source link

Move API Key to Environment Variables #6

Closed 29deepanshutyagi closed 41 minutes ago

29deepanshutyagi commented 2 hours ago

The current implementation of the Home component in our React application includes a hardcoded API key for the News API

Proposed Solution: To enhance security and protect sensitive information, we should move the API key to environment variables. This can be achieved by:

Creating a .env file at the root of the project (if it doesn’t already exist).
Adding the API key to the .env file, 
harshit1142 commented 1 hour ago

@29deepanshutyagi Yes, do add.