Skip to content

Commit

Permalink
fix: swagger layout (#960)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 authored Oct 25, 2023
1 parent 9e37924 commit 1ac2786
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions packages/dashboard-backend/src/plugins/swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function registerSwagger(server: FastifyInstance) {
uiConfig: {
tryItOutEnabled: true,
validatorUrl: null,
layout: 'BaseLayout',
},
});
}
7 changes: 0 additions & 7 deletions packages/dashboard-backend/webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ module.exports = () => {
{
from: path.resolve('..', '..', 'node_modules', '@fastify/swagger-ui', 'static'),
to: 'static',
transform(content, absoluteFrom) {
// it needs to hide the top bar(the definition URL path)
if (absoluteFrom.split('/').reverse()[0] === 'index.html') {
return content.toString().replace('layout: "StandaloneLayout"', '');
}
return content.toString();
},
},
],
}),
Expand Down

0 comments on commit 1ac2786

Please sign in to comment.