fix
This commit is contained in:
1 parent
4161fddb31
commit
398a09ad83
2 files changed
+2
No files matched your search
@@ -20,3 +20,4 @@ COS_SECRET_ID=yourid
|
|||||||
COS_SECRET_KEY=yourkey
|
COS_SECRET_KEY=yourkey
|
||||||
COS_REGION=ap-guangzhou
|
COS_REGION=ap-guangzhou
|
||||||
COS_BUCKET=examplebucket-1250000000
|
COS_BUCKET=examplebucket-1250000000
|
||||||
|
SERVER_PREFIX=/
|
||||||
@@ -19,6 +19,7 @@ async function bootstrap() {
|
|||||||
.addBearerAuth()
|
.addBearerAuth()
|
||||||
.build();
|
.build();
|
||||||
const document = SwaggerModule.createDocument(app, config);
|
const document = SwaggerModule.createDocument(app, config);
|
||||||
|
document.servers = [{ url: process.env.SERVER_PREFIX }];
|
||||||
SwaggerModule.setup('docs', app, document, {
|
SwaggerModule.setup('docs', app, document, {
|
||||||
jsonDocumentUrl: 'docs/json',
|
jsonDocumentUrl: 'docs/json',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user