Skip to content

Commit 1eeb535

Browse files
Update packages/functions/src/service.ts
Co-authored-by: Daniel La Rocque <[email protected]>
1 parent fc0968d commit 1eeb535

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/functions/src/service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ export class FunctionsService implements _FirebaseService {
122122
// Resolve the region or custom domain overload by attempting to parse it.
123123
try {
124124
const url = new URL(regionOrCustomDomain);
125-
this.customDomain = url.origin + url.pathname;
125+
this.customDomain =
126+
url.origin + (url.pathname === '/' ? '' : url.pathname);
126127
this.region = DEFAULT_REGION;
127128
} catch (e) {
128129
this.customDomain = null;

0 commit comments

Comments
 (0)