Disable swaggerUI in production env
What is the optimal way of disabling access to SwaggerUI in production environment?
Currently I'm doing
const router = env.ENVIRONMENT === 'local' ? OpenAPIRouter() : Router()
Currently I'm doing
const router = env.ENVIRONMENT === 'local' ? OpenAPIRouter() : Router()