Q
10/27/2022, 1:40 PMPREFECT_API_URL is not set (PREFECT_ORION_UI_API_URL is).
printenv | grep -E "PREFECT.*API"
# PREFECT_ORION_UI_API_URL=<https://domain.tld/api>
FlowRunNotifications use PREFECT_API_URL as base api url and since PREFECT_API_URL is not set api_url defaults to a rather useless <http://ephemeral-orion/api>.
I'm wondering if it would make sense to change this line to use PREFECT_ORION_UI_API_URL if PREFECT_API_URL is not set.
I see that PREFECT_ORION_UI_API_URL defaults to PREFECT_API_URL, but I think if I set PREFECT_API_URL to a seemingly external url api calls from ui will stop being routed through loopback and that would be a whole thing.