scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.42k stars 225 forks source link

Loading this package in Node takes ~1 minute every time. #245

Closed imkane closed 2 years ago

imkane commented 3 years ago

My hardware is at the top end, too.

The ~1 minute count is from the time I make a GET on the API docs UI page to the time the page loads. However the same behavior happens if I include the package in app.js and run npm start.

Does anyone else experience this? It's specific to this package.

scottie1984 commented 2 years ago

Hopefully you managed to resolve this - closing for now.

imkane commented 2 years ago

@scottie1984 yep! Sorry forgot to update it.

Rather than loading Swagger in app.js, we changed it to load for a specific route.