Skip to content

Commit 9d1fdcb

Browse files
committed
Allow a custom path in Firebase functions custom domain
1 parent e6b8525 commit 9d1fdcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/functions/src/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ 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;
125+
this.customDomain = url.origin + url.pathname;
126126
this.region = DEFAULT_REGION;
127127
} catch (e) {
128128
this.customDomain = null;

0 commit comments

Comments
 (0)