diff --git a/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts b/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts index 595f9e4b13..81e9f69a4b 100644 --- a/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts +++ b/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts @@ -1542,6 +1542,7 @@ export class RestApiBuilder extends BaseApiBuilder { this.router.get(`/${this.getDbAlias()}/swagger`, async (_req, res) => { res.send(ejs.render((await import('./ui/auth/swagger')).default, { + ncPublicUrl: process.env.NC_PUBLIC_URL || '', baseUrl: `/`, dbAlias: this.getDbAlias(), projectId: this.projectId diff --git a/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts b/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts index 6b770bc3b7..d8e5fe666d 100644 --- a/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts +++ b/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts @@ -2,11 +2,10 @@ export default ` XC Swagger UI - - + + - - +
@@ -14,7 +13,7 @@ export default `