#!/usr/bin/with-contenv bash

# Update OpenAPI documentation to match PUBLIC_ENDPOINT server url
sed -i 's|'"http://127.0.0.1:5252"'|'"${PUBLIC_ENDPOINT}"'|g' /docs/resto-api.json
sed -i 's|'"http://127.0.0.1:5252"'|'"${PUBLIC_ENDPOINT}"'|g' /docs/resto-api.html


Replace 127.0.0.1:5252 endpoint url with PUBLIC_ENDPOINT during deployment
Replace 127.0.0.1:5252 endpoint url with PUBLIC_ENDPOINT during deployment
