Why are my images not showing once deployed?
amontes
Member Posts: 1 ✭
Images are loading on localhost, but when deployed to heroku no images. Not even css background images. I have my env variables set in another webapp with the same keys. It works fine on the other app that is also deployed to heroku.
Tagged:
0
Answers
-
Hi @amontes.
Thanks for getting in touch.
It seems this may be an issue with how your environment variables are configured on the Heroku side, so it may be worth getting in touch with their support, as they will be better placed to provide assistance. There are a few things you can do to check the configuration is working before reaching out to their support team:
- You can check the environment variable returns correctly if you try to log it to the console. Please bear in mind you should never expose your API secret publicly, so try logging
cloudinary.config().api_key
orprocess.env.API_KEY
to see if it's being set correctly. - You could try stopping and restarting the application
- You could try fully redeploying the application.
I hope this helps. Please let us know how it goes.
Kind regards,
-Danny
0 - You can check the environment variable returns correctly if you try to log it to the console. Please bear in mind you should never expose your API secret publicly, so try logging