Apicurio / apicurio-registry

An API/Schema registry - stores APIs and Schemas.
https://www.apicur.io/registry/
Apache License 2.0
599 stars 265 forks source link

Unable to run UI from a base path that is NOT "/" #5396

Open marcantoine-bibeau opened 4 hours ago

marcantoine-bibeau commented 4 hours ago

Description

I would like to run ApiCurio UI on my kube cluster at a different path then root By example: https://app.domain.net/somewhere/apiregistry

Registry Version: 3.0.2 Persistence type**: posgress

Environment

Kubernetes 1.31.1

Steps to Reproduce

I tried some configuration but they are not loaded. Was probably working before UI split ? REGISTRY_CONTEXT_PATH: "/somewhere/apiregistry" REGISTRY_NAV_PREFIX_PATH: "/somewhere/apiregistry"

From the browser, when I reach /explore the index.html download /config.js file generated by the create-config.cjs (from entrypoint.sh). The problem is that in my case, /config.js does not exists. In my case it should be /somewhere/apiregistry/config.js. BUT ideally, it should be relative like ./config.js

Expected vs Actual Behaviour

Use relative path for ui to be able fetch configuration script (and version.js) to be able to pass environment variable such as REGISTRY_CONTEXT_PATH and REGISTRY_NAV_PREFIX_PATH

Logs

image

Hint

I am far from a FrontEnd expert but I was able to make one of my simple React app and run it under a custom path by using "homepage": "." in package.json file

apicurio-bot[bot] commented 4 hours ago

Thank you for reporting an issue!

Pinging @EricWittmann to respond or triage.