-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for serverless deployments #140
Comments
Happy to take a PR on this from someone who has gone through the process. |
I also tried for a long time to get Couldn't work out how to get it to work so I ditched If anyone has an example of Swagger UI working with |
Fix is here: #62 (comment) app.use('/api-docs/', swaggerUi.serveWithOptions({ redirect: false })) |
Turning off redirect causes basic authentication to keep popping up. |
@connorads Thanks for the idea, this is brilliant! hahaha |
I recently was pulling my hair out trying to get
swagger-ui-express
to work with a serverless API that is deployed to API gateway. The biggest problem is that that the routes for the dependent files served up viaswagger-ui-dist
have to be exposed explicitly as routes in theserverless.ym
l file. For example:In this example we are taking advantage of greedy paths defined here.
For people not familiar with serving static files in express they might overlook this. Can you update your documentation for users of serverless and include an example like this?
The text was updated successfully, but these errors were encountered: