Forum Discussion
RonRatovsky
Staff
7 years agoHow do you deploy Swagger UI to AWS?
Based on the way you describe the issue, it seems the problem is potentially with the definition itself as well. Can you share what your 'servers' definition looks like?
Thanks for your reply.
It's a flask app, using swagger with the help of connexion and deployed to AWS using Serverless Framework.
By default I have no "servers" definition as the default ('/') works just fine when developing and when loading on aws (the ui loads but without the openapi.json as I described before).
When I talked about setting '/dev' as the base path I set it like this:
servers:
-
url: /dev
description: Development server (uses dev data)