This MR implements the differentiation between dev and prod environments and sets the baseUrl accordingly.