I’ve got a Dockerized version of Tyk gateway set up running. It has a couple API definitions. I’m wondering about ways to organize this so that local dev can happen smoothly.
Is there a way to take a production API definition and override the target url?
Thanks for the suggestions. Not sure that would work in our case. Hosts file would make the production site in accessible from the dev machines. Haven’t worked with split horizon DNS, but we are all remote so sounds like that’d be a DNS for each dev and would also block the prod site.
Was hoping I was just missing something obvious. It’s hard to understand how this use case hasn’t been addressed since it feels like it would be a pretty common one, but maybe I’m wrong?
The URL rewrite middleware can help with this. Have a look at this page for more info. There are a number of advanced options including metadata read from an associated policy.