jscheffl commented on code in PR #46900:
URL: https://github.com/apache/airflow/pull/46900#discussion_r1962343836
##########
airflow/ui/src/main.tsx:
##########
@@ -58,6 +59,9 @@ axios.interceptors.request.use((config) => {
return config;
});
+// Dynamically set the base URL for XHR requests based on the meta tag.
+OpenAPI.BASE =
document.querySelector("meta[name='backend-server-base-url']")?.getAttribute("content")
?? "";
Review Comment:
Oh yeah - or do I mis-understand otherwise... if I operate my prod site in a
subfolder I'd need to patch a html file inside site-packages to adjust the
path? Temporarily that might be OK but for 3.0 this needs to be configurable
from outside w/o patching files.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]