Comments (5)
Hey @alexpchin, thanks for reaching out. Let me know if I may be wrong here, but from what I can tell, you’re trying to trigger local functions based on production events. If so, this is not possible. A detailed explanation can be found in #1962 (comment).
However, if you’re trying to read/write data from/to production, you could use the Firebase Admin SDK.
from firebase-tools.
Hello @aalej Please can you re-open. I'm not trying to trigger local functions based on production events. I've got some firebase functions that are callable, http etc. What I want to be able to do is to call the functions from a localhost endpoint but for them to use the production firebase credentials.
This is part of a bigger task of trying to use the emulators within the context of a PR. I believe it should be possible to use the firebase functions locally, so that they are callable but they use a real firestore database in the config.
from firebase-tools.
I pretty much want to run as if I'm using:
firebase serve --only functions
from firebase-tools.
Thanks for the clarification @alexpchin. Just to verify, from what I understand you have Firebase Cloud Functions such as an HTTP function. When the function runs, you want to use the same credentials from production as credentials for the Firebase Admin SDK to write data to Cloud Firestore.
Is my understanding here correct, or am I missing anything? Would you be able to share a sample code snippet of your function?
from firebase-tools.
Hey @alexpchin - this message function ignored because the firestore emulator does not exist or is not running.
will be shown when the Functions emulator skips over a Firestore triggered function. If you have HTTP or callable functions, they are still running.
from firebase-tools.
Related Issues (20)
- Cannot deploy NextJS on Firebase App Hosting Backend, IF it's inside a sub directory HOT 2
- Not able to download emulators on MAC HOT 7
- deployments (55 functions) failing with message "Build failed with status: EXPIRED..." HOT 45
- profile HOT 1
- Unable to connect to emulator over https HOT 3
- Firebase-tools v13.11.0 has crashlytics buildtools v3 that does not work on Intel-based Macs HOT 2
- Linux install using automatic script, but recommended using npm HOT 2
- Firebase deployment started failing since 01/06 HOT 1
- zeta HOT 2
- Build is not getting uploaded to Firebase App Distribution using GOOGLE_APPLICATION_CREDENTIALS HOT 7
- Disable email sending for Firebase Distribution HOT 1
- [Firebase App Hosting] Error during Angular build on Firebase App Hosting triggered by GitHub Actions HOT 1
- Firebase RemoteConfig generates invalid JSON with the rollout feature HOT 3
- Pub/Sub emulator fails to start when cache path contains a whitespace HOT 3
- searchParams does not work Firebase Hosting HOT 4
- firebase emulators start HOT 2
- pnpm workspace firebase support
- Running `flutterfire reconfigure` returned a `FormatException` HOT 2
- Cloud Runtime Config is currently experiencing issues and not able to deploy HOT 56
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-tools.