diff --git a/frontend/src/app/components/connect-db/connect-db.component.ts b/frontend/src/app/components/connect-db/connect-db.component.ts index f5549507..8a5f181c 100644 --- a/frontend/src/app/components/connect-db/connect-db.component.ts +++ b/frontend/src/app/components/connect-db/connect-db.component.ts @@ -158,6 +158,7 @@ export class ConnectDBComponent implements OnInit, OnDestroy { const createdConnectionID = res.id!; if (this.db.connectionType === 'agent') { this.connectionToken = res.token; + this.connectionID = res.id; } else { this.router.navigate([`/dashboard/${createdConnectionID}`]); }; diff --git a/frontend/src/config.json b/frontend/src/config.json index 973c0e91..b5c379db 100644 --- a/frontend/src/config.json +++ b/frontend/src/config.json @@ -1,4 +1,4 @@ { "#important to keep it /api for prod": true, - "baseURL": "https://app.rocketadmin.com/api" + "baseURL": "/api" }