File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/mongodb-build-info/src Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const LOCALHOST_REGEX =
99const DIGITAL_OCEAN_REGEX = / \. m o n g o \. o n d i g i t a l o c e a n \. c o m $ / i;
1010const COSMOS_DB_REGEX = / \. c o s m o s \. a z u r e \. c o m $ / i;
1111const DOCUMENT_DB_REGEX = / d o c d b ( - e l a s t i c ) ? \. a m a z o n a w s \. c o m $ / i;
12+ const FIRESTORE_REGEX = / \. f i r e s t o r e .g o o g $ / i;
1213
1314function isRecord ( value : unknown ) : value is Record < string , unknown > {
1415 return typeof value === 'object' && value !== null ;
@@ -149,6 +150,10 @@ export async function identifyServerName(
149150 return 'documentdb' ;
150151 }
151152
153+ if ( hostname . match ( FIRESTORE_REGEX ) ) {
154+ return 'firestore' ;
155+ }
156+
152157 const buildInfo = await runCommand ( { buildInfo : 1 } ) ;
153158
154159 if ( 'ferretdb' in buildInfo ) {
You can’t perform that action at this time.
0 commit comments