-
-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GOOGLE_APPLICATION_CREDENTIAL alternative for monorepos #1462
Comments
@mklueh Can you detail how do you handle things when you deploy to Firebase? Even if it's a mono repo, you should still be able to set different environment variables for each app |
On a related note, can we also get a way to specify where "firebase.json" file is located so that the emulators get picked up? |
Do you have an example that requires renaming the |
in the documentation https://vuefire.vuejs.org/nuxt/environment-variables.html |
it seems if im hosting my server on google cloud and has same account associated with that server in firebase , but if my config is targeting another firebase account it gets overridden and uses the account on google cloud where the server is hosted instead.... so weird EDIT , this was indeed the case . fixed by initializing using credential: cert({ ## }) |
I use the default Firebase project structure where so that the directory looks something like this at the root:
The 'apps' directory has multiple SSR applications in some web framework or another served via firebase cloud functions using shared database resources. Due to this nesting I believe vuefire can't find the firebase.json config. The 'firebase.json' config lets you specify the directory that contains your build output so it's no problem deploying with this setup. The instructions for this were from Nuxt/Nitro documentation at: https://nitro.unjs.io/deploy/providers/firebase That all works for me and I can successfully deploy/serve my app. It's only vuefire that doesn't work so I had to use raw fb SDK. |
I see, makes sense. Let’s add ann option. Feel free to submit a PR to accelerate things! |
Instead of adding an option to define the path of the |
What problem is this solving
Hi there,
as it seems that declaring the service account the old way in nuxt.config.ts is gone
There needs to be a way to handle multiple such serviceAccountKeys for multiple applications within a monorepo.
I'm not sure if there is any alternative at all right now and if this might already possible, but I have at least not seen a way to specify the json file anymore.
Maybe it's this property now?
But it says "ID", which does not sound like the file to me.
Proposed solution
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: