-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
env variable is added to auth #120
env variable is added to auth #120
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE. |
Environment variable used "REACT_APP_API_KEY" , |
.env
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sushanth-Hebri still this key will be visible. So, you have to delete this file. I will add this key in deployement env variables. and resolve the conflicts.
@@ -13,7 +13,7 @@ const QuoteSection = () => { | |||
try { | |||
const response = await fetch('https://api.yourquoteapi.com/quotes?author=Chanakya', { | |||
headers: { | |||
'Authorization': `4fe303f4bamshb97ef5b1dd575e0p1ccc51jsnd9644d3c587b` | |||
'Authorization': process.env.REACT_APP_API_KEY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
named it QUOTES_API_KEY
@Avdhesh-Varshney is attempting to deploy a commit to the avdheshvarshney's projects Team on Vercel. A member of the Team first needs to authorize it. |
solved this in #124 , auth key must start with REACT_APP for safety , for custom key there need to be separate wired config , |
Auth key is added with env variable