Skip to content

Commit

Permalink
Merge pull request #57 from Brints/swagger_doc
Browse files Browse the repository at this point in the history
update: Added production url to swagger config.
  • Loading branch information
aniebietafia authored Nov 9, 2024
2 parents 68e098e + 7a2ee48 commit 53356b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion brints-estate-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start": "NODE_ENV=production nest start",
"start:dev": "NODE_ENV=development nest start --watch",
"start:debug": "NODE_ENV=development nest start --debug --watch",
"start:prod": "NODE_ENV=production node dist/main",
Expand Down
4 changes: 2 additions & 2 deletions brints-estate-api/src/config/config.swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export function swaggerInitializer(app: INestApplication<any>) {
.setDescription(
'The modern day Real Estate API simplifying the way we buy and sell properties',
)
.addServer('http://localhost:3001', 'Development Server')
.addServer('https://brints-estate-api.herokuapp.com', 'Production Server')
.addServer('https://estate.brintsgroup.live', '(Production Server)')
.addServer('http://localhost:3001', '(Development Server)')
.setTermsOfService('http://localhost:3001/terms')
.setLicense(
'MIT',
Expand Down

0 comments on commit 53356b7

Please sign in to comment.