Hi! Is it possible to customise base URL of Orion ...
# prefect-community
v
Hi! Is it possible to customise base URL of Orion UI in static builds? I have started standalone Orion server (without agent) and UI is not refreshed, because of CORS errors. UI app try to fetch data from
localhost:4200
. I think the reason is here: https://github.com/PrefectHQ/prefect/blob/orion/orion-ui/src/plugins/api.ts#L198
a
Good question, normally you should be able to adjust this setting using an environment variable as follows:
Copy code
export PREFECT_ORION_API_HOST="your_host"
but not sure how UI uses this setting. I’ll ask the team
ok, I’m afraid you’re correct - this is hardcoded for now, so you would need to either wait a little until this gets separated out into its own settings, or modify the source code and build from your own fork
v
Ok! Thank you, Anna. I hope this will be fixed in future Orion builds.