You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While adopting blue-green template for production use we've faced the difference in the behavior for blue and green deployments in regards to geolocation detection.
Adding a simple logic application level middleware logic for getting geolocation fetching from request object:
Do you have any recommendations on how to forward location to the override deployment, so that we keep using the OOB interface for reading NextRequest geo object (without a need to patch every such entry with custom logic)?
We've tried setting headers.set("x-vercel-ip-country", req.geo?.country || ''); before fetching override deployment - it did not help.
The text was updated successfully, but these errors were encountered:
ashishagin
changed the title
Different geo locations for blue and green deployment
Different geo locations for blue and green deployments
May 31, 2024
Hi Vercel Team,
While adopting blue-green template for production use we've faced the difference in the behavior for blue and green deployments in regards to geolocation detection.
Adding a simple logic application level middleware logic for getting geolocation fetching from request object:
Expected result:
Observed result:
Please find the branch showing the full sample: https://github.com/ashishagin/bluegreen/pull/1/files
Do you have any recommendations on how to forward location to the override deployment, so that we keep using the OOB interface for reading NextRequest geo object (without a need to patch every such entry with custom logic)?
We've tried setting
headers.set("x-vercel-ip-country", req.geo?.country || '');
before fetching override deployment - it did not help.The text was updated successfully, but these errors were encountered: