Support both baseUrl and basePath simultaneously