Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
509 views
in Technique[技术] by (71.8m points)

reactjs - How to add a Heroku deployed API to Vercel image optimization entries

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...