Blue Green deployment with silverstripe containers

Silverstripe Version:
silverstripe/cms 4.5.1

Question:
How to allow the application to accept all the incoming traffic without specifying base domain

Details of your query go here
We are planning on implementing blue green deployment for silverstripe container applications inside k8s. All the traffic and domains(blue and green) are managed by ingress controller so that we can switch between blue and green environment. However, after we promote blue to green (staging to prod) at ingress controller level, the prod traffic still goes to the staging because the the prod has staging domain (SS_BASE_URL) bond to it.

For instance, we have 2 environment blue and green. The blue environment serves staging.example.com (staging) and the green environment serves example.com (prod). After testing the changes, We then promote the blue env to green (staging to prod) by switch the ingress traffic so that all the prod traffic reaches blue environment. However, the blue env app that should serve example.com(prod) redirects the domain to staging.example.com(staging) as SS_BASE_URL=staging.example.com in the env.

Before promotion ====>
Environment Application Ingress Serve
blue app(base_url=staginge.example.com) staging.example.com staging
green app(base_url=example.com) example.com prod

Promote blue to prod ====>
Environment Application Ingress Serve
blue app(base_url=staginge.example.com) example.com prod
green app(base_url=example.com) staging.example.com staging

I wonder is there a way to make the application to accept all the incoming traffic without worrying about the domain?

Thanks,
Fred