Skip to content

Commit 3b8fc66

Browse files
committed
add getResourceUrl and change groupId to projectId
1 parent e88856f commit 3b8fc66

File tree

4 files changed

+183
-78
lines changed

4 files changed

+183
-78
lines changed

packages/atlas-service/src/atlas-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class AtlasService {
7676
return this.cloudEndpoint(path);
7777
}
7878
driverProxyEndpoint(path?: string): string {
79-
return `${this.config.wsBaseUrl}${normalizePath(path)}`;
79+
return `${this.config.ccsBaseUrl}${normalizePath(path)}`;
8080
}
8181
async fetch(url: RequestInfo | URL, init?: RequestInit): Promise<Response> {
8282
throwIfNetworkTrafficDisabled(this.preferences);

packages/atlas-service/src/util.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export type AtlasServiceConfig = {
9696
/**
9797
* MongoDB Driver WebSocket proxy base url
9898
*/
99-
wsBaseUrl: string;
99+
ccsBaseUrl: string;
100100
/**
101101
* Cloud UI backend base url
102102
*/
@@ -131,7 +131,7 @@ export type AtlasServiceConfig = {
131131
*/
132132
const config = {
133133
'atlas-local': {
134-
wsBaseUrl: 'ws://localhost:61001/ws',
134+
ccsBaseUrl: 'ws://localhost:61001/ws',
135135
cloudBaseUrl: '',
136136
atlasApiBaseUrl: 'http://localhost:8080/api/private',
137137
atlasLogin: {
@@ -141,7 +141,7 @@ const config = {
141141
authPortalUrl: 'https://account-dev.mongodb.com/account/login',
142142
},
143143
'atlas-dev': {
144-
wsBaseUrl: '',
144+
ccsBaseUrl: '',
145145
cloudBaseUrl: '',
146146
atlasApiBaseUrl: 'https://cloud-dev.mongodb.com/api/private',
147147
atlasLogin: {
@@ -151,7 +151,7 @@ const config = {
151151
authPortalUrl: 'https://account-dev.mongodb.com/account/login',
152152
},
153153
'atlas-qa': {
154-
wsBaseUrl: '',
154+
ccsBaseUrl: '',
155155
cloudBaseUrl: '',
156156
atlasApiBaseUrl: 'https://cloud-qa.mongodb.com/api/private',
157157
atlasLogin: {
@@ -161,7 +161,7 @@ const config = {
161161
authPortalUrl: 'https://account-qa.mongodb.com/account/login',
162162
},
163163
atlas: {
164-
wsBaseUrl: '',
164+
ccsBaseUrl: '',
165165
cloudBaseUrl: '',
166166
atlasApiBaseUrl: 'https://cloud.mongodb.com/api/private',
167167
atlasLogin: {
@@ -171,7 +171,7 @@ const config = {
171171
authPortalUrl: 'https://account.mongodb.com/account/login',
172172
},
173173
'web-sandbox-atlas-local': {
174-
wsBaseUrl: '/ccs',
174+
ccsBaseUrl: '/ccs',
175175
cloudBaseUrl: '/cloud-mongodb-com',
176176
atlasApiBaseUrl: 'http://localhost:8080/api/private',
177177
atlasLogin: {
@@ -181,7 +181,7 @@ const config = {
181181
authPortalUrl: 'https://account-dev.mongodb.com/account/login',
182182
},
183183
'web-sandbox-atlas-dev': {
184-
wsBaseUrl: '/ccs',
184+
ccsBaseUrl: '/ccs',
185185
cloudBaseUrl: '/cloud-mongodb-com',
186186
atlasApiBaseUrl: 'https://cloud-dev.mongodb.com/api/private',
187187
atlasLogin: {
@@ -191,7 +191,7 @@ const config = {
191191
authPortalUrl: 'https://account-dev.mongodb.com/account/login',
192192
},
193193
'web-sandbox-atlas-qa': {
194-
wsBaseUrl: '/ccs',
194+
ccsBaseUrl: '/ccs',
195195
cloudBaseUrl: '/cloud-mongodb-com',
196196
atlasApiBaseUrl: 'https://cloud-dev.mongodb.com/api/private',
197197
atlasLogin: {
@@ -201,7 +201,7 @@ const config = {
201201
authPortalUrl: 'https://account-dev.mongodb.com/account/login',
202202
},
203203
'web-sandbox-atlas': {
204-
wsBaseUrl: '/ccs',
204+
ccsBaseUrl: '/ccs',
205205
cloudBaseUrl: '/cloud-mongodb-com',
206206
atlasApiBaseUrl: 'https://cloud.mongodb.com/api/private',
207207
atlasLogin: {

0 commit comments

Comments
 (0)