Comments (8)
I see, makes sense. Let’s add ann option. Feel free to submit a PR to accelerate things!
from vuefire.
@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
from vuefire.
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?
I also have a monorepo setup and can't get the Nuxt plugin to connect to them even with the flag set.
from vuefire.
Do you have an example that requires renaming the firebase.json
file? Does that work with Firebase tools?
from vuefire.
in the documentation https://vuefire.vuejs.org/nuxt/environment-variables.html
it says you can set it to the content of the file itself. can you please show me an example of this. I am trying to self host on my own server , it works in development mode but soon as I do a build it doesn't work. I belive the service-account is not being found.
from vuefire.
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({ ## })
from vuefire.
Do you have an example that requires renaming the
firebase.json
file? Does that work with Firebase tools?
I use the default Firebase project structure where so that the directory looks something like this at the root:
- firebase.json
- functions/
- apps/my-nuxt-app/
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.
from vuefire.
Instead of adding an option to define the path of the firebase.json
file, let's remove the need to read it altogether: #1429
from vuefire.
Related Issues (20)
- Documentation Request: How to use emulators the correct way HOT 2
- Cannot read properties of null (reading 'photoURL') HOT 4
- Unbind `useCollection` on logout
- Realtime Database does not allow `null` despite docs? HOT 1
- Documentation of useCurrentUser
- Session Cookie Options
- Firebase Auth tree shaking HOT 3
- Make vue-fire compatible with Ionic ? HOT 10
- Broken: "firebase.json" file doesn't exist + import issue HOT 5
- documentation error HOT 1
- id field value is override by vuefire HOT 3
- typescript type definition not consistence: useDocument return null reference if document does not exist HOT 1
- Error when installing v3.1.20. - simple-git-hooks not recognized as a command HOT 6
- `databaseDefaultSerializer` exported incorrecly HOT 1
- Use multiple firestore databases HOT 1
- When using withConverter on collection it do not fetch inner refs
- returned values from `useDocument` and `useCollection` using a getter aren't reactive HOT 1
- `toFirestore` inside `globalFirestoreOptions.converter` is never called HOT 1
- Detect nested refs in custom classes
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 vuefire.