-
Notifications
You must be signed in to change notification settings - Fork 144
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
Step 15 Use environmental variables for the Unsplash API key #70
Comments
@reymon359 are you up for a PR to change it how you see fit? |
Sure, I could find some time and work on it! I was thinking of changing it to: headers: {
Authorization:
`Client-ID ${process.env.UNSPLASH_ACCESS_KEY}`,
}, Although it could also be added in the env.ts file and then import it here. What do you think? |
mmmm not sure, I'll leave it to your call! |
Fix the text to use environmental variables for the Unsplash API key Urigo#70
Hi there! Sorry for the late response but I have been quite busy the last weeks. I submitted a pull request #84 to implement it. I tried to change the code too but when I click the submit button I am being redirected to a not working link. I opened an issue to take it into account #85 |
I think it should be a nice thing to explain to the user what are Environmental Variables and how to create and use a
.env
file in the application and change the current way the Unsplash API key it's usedEDIT
This course is so extensive and full of teachings that I forgot that the
.env
file is actually explained in Step 3 > Client 3.1So maybe just create one for the server and add the Unsplash API key to it?
The text was updated successfully, but these errors were encountered: