freeCodeCamp / publish

> Content backend platform for /news
https://publish.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

fix: make feature image preview work in staging #414

Closed sidemt closed 8 months ago

sidemt commented 8 months ago

Checklist:

Closes #XXXXX

So I noticed the feature image in preview is broken when I deployed it to the staging server. It seems to be caused by the duplicate / in the URL.

I think this PR should fix it to work with or without trailing / in NEXT_PUBLIC_STRAPI_BACKEND_URL value.