firebase / firebase/firebase-js-sdk

Change firebase function regions whilst using Firebase Hosting

Open
#2,302 3 comments 1 reaction 0 assignees View on GitHub
api: functions feature request
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

* Operating System version: Windows 10
* Browser version: Google chrome 78.0.3904.70
* Firebase SDK version: v7.6.1
* Firebase Product: Firebase functions + Firebase hosting

Hi,

I'm currently using the javascript firebase sdk and I currently load the firebase sdk through reserved hosting urls. I currenly have it so that it loads the config through the reserved urls, but I am looking to change my firebase functions region.

The issue that I am having is that it will not change the region when using the reserved hosting urls:

I can perfectly well use the default american region, but I would like to change it to another:

`var functions = firebase.app().functions('europe-west2');`;
This is what I currently have tried, which is from the docs, with no success.

Network requests also link to the us-central1 region.
![image](https://user-images.githubusercontent.com/39023874/67634597-0e599900-f8b6-11e9-8834-cf8a2f6af749.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.