-
Notifications
You must be signed in to change notification settings - Fork 0
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
/api-docs redirects to Swagger demo Pet Store when to portal is run in production environment #535
Comments
Swagger is looking at the following files for the documentation:
However these source files are not present in the production build. This is likely the issue, yet it is strange that Swagger decide by itself to show the Pet store demo if no documentation is passed instead of throwing an error. A solution would compile the source files with the Swagger doc into a single file during |
…ild. Currently using hardcoded path that works only on my computer (WIP) (#535)
NotesThe idea is to keep the current setup in In Part of this fix has already been implemented in #555, but as this PR is not going to be merged in Milestone 2, I'll extract part of it to fix this swagger issue right now. |
An issue was due to an update of Thus I replaced:
by
Aside the source of the swagger definitions, I'm not sure why this issue hit only the production environment. Maybe the way the server and the client dev server serve routes. |
The fix is provided in the above PR. |
The text was updated successfully, but these errors were encountered: