FiveEightyEight / TeamTwo_YTube

Single-page web app that uses the YouTube API
0 stars 0 forks source link

API Keys #75

Open FiveEightyEight opened 5 years ago

FiveEightyEight commented 5 years ago

Have back up API keys for failures

FiveEightyEight commented 5 years ago

Is this an error you're currently getting? Unless you've been using the API key we got from Google it more than likely expired and we'll have to get new ones.

JorgeBillini commented 5 years ago

Is it possible to use ENV variables in a React Environment and if so, does netlify allow us to produce multiple env variables?

FiveEightyEight commented 5 years ago

Environment variables are a thing in front ends React apps. I'm not sure about Netlify having environment variables but according to this post https://stackoverflow.com/questions/48453493/set-environment-variable-for-build-in-netlify you can create your own during the build process.

Do you want environment variables to mask the API keys?

JorgeBillini commented 5 years ago

Yes. that way we can keep a collection of API_KEYS and each time one fails we can swap it out for another one. Wondering about the env variables since I have not had to use them for my React Projects