We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc0968d commit 1eeb535Copy full SHA for 1eeb535
packages/functions/src/service.ts
@@ -122,7 +122,8 @@ export class FunctionsService implements _FirebaseService {
122
// Resolve the region or custom domain overload by attempting to parse it.
123
try {
124
const url = new URL(regionOrCustomDomain);
125
- this.customDomain = url.origin + url.pathname;
+ this.customDomain =
126
+ url.origin + (url.pathname === '/' ? '' : url.pathname);
127
this.region = DEFAULT_REGION;
128
} catch (e) {
129
this.customDomain = null;
0 commit comments