我使用 Swagger 和 NestJs。部署的项目有前缀
/api
我尝试使用
.setBasePath
.setBasePath(environment === 'local' ? '' : '/api')