DEV Community

Discussion on: Hide your API Keys with Netlify Functions

 
fabiorosado profile image
Fabio Rosado

Hello I think you might have misunderstand - or I haven't explained myself well on the post. You will need to push .netlify folder to your repo. All your api keys should be environmental variables which will be set on netlify website.

That way netlify will get your keys server side when running your server-side function. If you can't make netlify discover that folder make sure that this folder is located in the root of your project and in netlify functions tab you wrote the full path './netlify/functions'

Hope this helps

Thread Thread
 
jftidwell profile image
jftidwell

'./netlify/functions' instead of '.netlify/functions'
This seems to have been the issue. thanks!