Added support for basePaths to document across multiple environments