apicurio-registry icon indicating copy to clipboard operation
apicurio-registry copied to clipboard

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

Open marcantoine-bibeau opened this issue 4 months ago • 4 comments

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

marcantoine-bibeau avatar Oct 23 '24 20:10 marcantoine-bibeau