Skip to content

Commit 4b3d302

Browse files
Update API server URL to production in main.ts and OpenAPI documentation (#1516)
- Changed the server URL from a local development address to the production URL (https://api.trycomp.ai) in both the main application file and the OpenAPI JSON documentation. - This update ensures that the API documentation reflects the correct endpoint for users and developers. These changes enhance the accuracy of the API documentation and improve the overall developer experience. Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>
1 parent 96567a5 commit 4b3d302

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

apps/api/src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ async function bootstrap(): Promise<void> {
3636

3737
// Get server configuration from environment variables
3838
const port = process.env.PORT ?? 3333;
39-
const baseUrl = process.env.BASE_URL ?? `http://localhost:${port}`;
4039

4140
// Swagger/OpenAPI configuration
4241
const config = new DocumentBuilder()
@@ -52,7 +51,7 @@ async function bootstrap(): Promise<void> {
5251
},
5352
'apikey',
5453
)
55-
.addServer(baseUrl, 'API Server')
54+
.addServer('https://api.trycomp.ai', 'API Server')
5655
.build();
5756
const document: OpenAPIObject = SwaggerModule.createDocument(app, config);
5857

packages/docs/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6272,7 +6272,7 @@
62726272
"tags": [],
62736273
"servers": [
62746274
{
6275-
"url": "http://localhost:3333",
6275+
"url": "https://api.trycomp.ai",
62766276
"description": "API Server"
62776277
}
62786278
],

0 commit comments

Comments
 (0)