Skip to content

Commit 1de2383

Browse files
authored
should use DEFAULT_LOCATION (#292)
1 parent 534d895 commit 1de2383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vertexai/src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import { FirebaseApp, getApp, _getProvider } from '@firebase/app';
1919
import { Provider } from '@firebase/component';
2020
import { getModularInstance } from '@firebase/util';
21-
import { VERTEX_TYPE } from './constants';
21+
import { DEFAULT_LOCATION, VERTEX_TYPE } from './constants';
2222
import { VertexService } from './factory';
2323
import { Vertex, VertexOptions } from './public-types';
2424
import { ERROR_FACTORY, VertexError } from './errors';
@@ -51,7 +51,7 @@ export function getVertex(
5151
const vertexProvider: Provider<'vertex'> = _getProvider(app, VERTEX_TYPE);
5252

5353
return vertexProvider.getImmediate({
54-
identifier: options?.location || 'DEFAULT'
54+
identifier: options?.location || DEFAULT_LOCATION
5555
});
5656
}
5757

0 commit comments

Comments
 (0)