Add baseUrl parameter and update paths accordingly.