This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 24430d958bc [v3-1-test] Add compat deprecation handling for 
[webserver/base_url] (#59659) (#59781)
24430d958bc is described below

commit 24430d958bc9702b021353adb0fe50cd3547135e
Author: Jason(Zhe-You) Liu <[email protected]>
AuthorDate: Wed Dec 24 18:52:24 2025 +0800

    [v3-1-test] Add compat deprecation handling for [webserver/base_url] 
(#59659) (#59781)
    
    (cherry picked from commit 3c65b12acc4f2e9601f9c0b7c63d7a184098bf85)
---
 .../docs/administration-and-deployment/production-deployment.rst        | 2 +-
 airflow-core/src/airflow/configuration.py                               | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/airflow-core/docs/administration-and-deployment/production-deployment.rst 
b/airflow-core/docs/administration-and-deployment/production-deployment.rst
index 78d0e0966bc..e4a6c1c814b 100644
--- a/airflow-core/docs/administration-and-deployment/production-deployment.rst
+++ b/airflow-core/docs/administration-and-deployment/production-deployment.rst
@@ -90,7 +90,7 @@ e.g. metadata DB, password, etc. You can accomplish this 
using the format :envva
 .. code-block:: bash
 
  AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=my_conn_id
- AIRFLOW__WEBSERVER__BASE_URL=http://host:port
+ AIRFLOW__API__BASE_URL=http://host:port
 
 Some configurations such as the Airflow Backend connection URI can be derived 
from bash commands as well:
 
diff --git a/airflow-core/src/airflow/configuration.py 
b/airflow-core/src/airflow/configuration.py
index 361b5765fd4..a4bf6293e34 100644
--- a/airflow-core/src/airflow/configuration.py
+++ b/airflow-core/src/airflow/configuration.py
@@ -347,6 +347,7 @@ class AirflowConfigParser(ConfigParser):
     # DeprecationWarning will be issued and the old option will be used instead
     deprecated_options: dict[tuple[str, str], tuple[str, str, str]] = {
         ("dag_processor", "refresh_interval"): ("scheduler", 
"dag_dir_list_interval", "3.0"),
+        ("api", "base_url"): ("webserver", "base_url", "3.0"),
         ("api", "host"): ("webserver", "web_server_host", "3.0"),
         ("api", "port"): ("webserver", "web_server_port", "3.0"),
         ("api", "workers"): ("webserver", "workers", "3.0"),

Reply via email to