ExerciseDB

付费
通过 Justin Mozley | 已更新 8 days ago | Health and Fitness
人气

9.8 / 10

延迟

279ms

服务等级

100%

返回所有讨论

Hiding API KEY in .env

avatar
wlcole1970
2 months ago

I kept getting the message ‘You are not subscribed to this API.’

This doesn’t happen if it place the API Key into my fetchData.js file but if i want it to be secure and place it in the .env file, i get this message.

Any help is appreciated.

Thanks

avatar
genarene96 commented 2 months ago

I moved my .env file to the root of my project and it worked…Thanks

avatar
cristiangualteros23 commented 2 months ago

you must activate the free subscription, that’s sufficient.
Search by test endpoint

avatar
creativehippodesigns commented 2 months ago

This seems like a common error when you have you .env file stored in src instead of root of your project. Try moving it and then restarting your server. That should work.

avatar
Revis1on commented 2 months ago

I’m having the same problem

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论
打分:4.1 - 投票:22