File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ import {
29
29
} from '@firebase/component' ;
30
30
import { Functions as FunctionsServiceExp } from '@firebase/functions-exp' ;
31
31
32
+ const DEFAULT_REGION = 'us-central1' ;
33
+
32
34
declare module '@firebase/component' {
33
35
interface NameServiceMapping {
34
36
'app-compat' : FirebaseApp ;
@@ -46,7 +48,7 @@ const factory: InstanceFactory<'functions-compat'> = (
46
48
const functionsServiceExp = container
47
49
. getProvider ( 'functions-exp' )
48
50
. getImmediate ( {
49
- identifier : regionOrCustomDomain
51
+ identifier : regionOrCustomDomain ?? DEFAULT_REGION
50
52
} ) ;
51
53
52
54
return new FunctionsService ( app , functionsServiceExp ) ;
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ import {
25
25
} from '@firebase/component' ;
26
26
import { FUNCTIONS_TYPE } from './constants' ;
27
27
28
- export const DEFAULT_REGION = 'us-central1' ;
29
-
30
28
export function registerFunctions ( fetchImpl : typeof fetch ) : void {
31
29
const factory : InstanceFactory < 'functions' > = (
32
30
container : ComponentContainer ,
You can’t perform that action at this time.
0 commit comments