$wgMFNearbyEndpoint and $wgMFPhotoUploadEndpoint are useful configurations for development however they come at the cost of shipping code to production. They also do not apply to all API requests. A notable omission is a search API endpoint override. What should that look like? The seam is currently in the skin, MinervaNeue, but the the other configs reside in MobileFrontend. We can do something like api.defaults.ajax.url = 'https://en.m.wikipedia.org/w/api.php' but do we want to?
- Search can be configured to arbitrary URLs. For example, it should be possible to search production enwiki pages from a local instance with no pages.
- Reduce the amount of development-code shipped to production