Refix production configuration
Tweak regex for URL parsing