Skip to content

feat: disable Swagger in production environments - #168

Open
chetankoli-ll wants to merge 4 commits into
devfrom
fix/disable-swagger-in-production
Open

chetankoli-ll wants to merge 4 commits into
devfrom
fix/disable-swagger-in-production

Conversation

@chetankoli-ll

Copy link
Copy Markdown
Contributor

No description provided.

globalPrefix = 'api',
swagger = {},
swagger = isProduction ? false : true,
permissionsPolicyOverrides = {},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems wrong. if we have passed swagger as true/false, it should always be true/false irrespective of environment. That way someone is consuming project can definitively control his swagger behaivour. only fallback we should default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants