Store api base url when rebuilding config