PROXY_PREFIX is not working as expected.

UI Content not rendering while serving on a prefix.

Issues with PROXY_PREFIX

  1. is appending twice on the platform at some places, and does not apply at few other places.
    example:
    someprefix/someprefix/static/scripts/libs/require.js?v=1634630168

  2. does not get applied to url stated inside .css or js files.
    (example urls mentioned inside /static/style/base.css)
    example:
    /static/scripts/bundled/assets/68f6ead9b879fa12c09aa5ea225584f0.png

  3. does not work with api calls
    example:
    someprefix/api/histories/5969b1f7201f12ae?keys=size%2Cnon_ready_jobs%2Ccontents_active%2Chid_counter
    Error:
    {“err_msg”: “History is not accessible by user”, “err_code”: 403002}

We are using
docker image: Docker Hub

Any suggestions regarding a correct method to render correctly to serve on a “example.com/some/prefix” will be very helpful.