@DrKlonk
Posted
Usually the way for me to hide an api key would be as an environment variable. You can get those in a Node server by installing the package dotenv, adding a .env file and accessing it in the server by using process.env.VARIABLE_NAME. More on it here.
Do not include it in git though, if you really want it hidden.
Btw, I didn't do this challenge yet and have never used Netlify, so I don't know if your way is even better.
@RayaneBengaoui
Posted
@DrKlonk Thank you for your comment ! I'll check the ressource you linked.