Skip to content

Commit 95b26f8

Browse files
committed
Remove support for the emulator since we don't have a name
1 parent cdd1221 commit 95b26f8

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

packages/functions/src/service.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,6 @@ export class FunctionsService implements _FirebaseService {
152152

153153
return `https://${this.region}-${projectId}.cloudfunctions.net/${name}`;
154154
}
155-
156-
/**
157-
* Returns the emulator URL if connected, or the provided URL.
158-
* @param url - The fallback URL.
159-
* @internal
160-
*/
161-
_emulatorUrlOr(url: string): string {
162-
const projectId = this.app.options.projectId;
163-
if (this.emulatorOrigin !== null) {
164-
const origin = this.emulatorOrigin;
165-
return `${origin}/${projectId}/${this.region}/${name}`;
166-
}
167-
return url;
168-
}
169155
}
170156

171157
/**
@@ -213,7 +199,7 @@ export function httpsCallableFromURL<RequestData, ResponseData>(
213199
return (data => {
214200
return callAtURL(
215201
functionsInstance,
216-
functionsInstance._emulatorUrlOr(url),
202+
url,
217203
data,
218204
options || {}
219205
);

0 commit comments

Comments
 (0)