Forum Discussion

LeonardLai's avatar
LeonardLai
Occasional Contributor
5 years ago
Solved

How do I turn off swagger-ui in production

Hi,

 

I want to turn off my swagger-ui when my product is about to release.

How to do it ?

 

Thanks

  • Swagger UI is just a set of static files. If you don't want to expose it, either don't deploy the files, or block them in whichever web server you use.

1 Reply

  • Swagger UI is just a set of static files. If you don't want to expose it, either don't deploy the files, or block them in whichever web server you use.