My front-end is deployed on Vercel, and the back-end on Heroku.
How should I add the API endpoint to my next.config.js
file, in order to show my images?
What I've tried:
herokuapp.com
my-api-link.herokuapp.com
my-api-link.herokuapp.com/uploads
(path for my static files)
I've tried to add https://
prefix to the entry as well.
Is there something else that I've missed like a specific optimizer from Heroku?
Thanks!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…