Code Monkey home page Code Monkey logo

Comments (8)

posva avatar posva commented on May 25, 2024 1

I see, makes sense. Let’s add ann option. Feel free to submit a PR to accelerate things!

from vuefire.

posva avatar posva commented on May 25, 2024

@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.

juane1000 avatar juane1000 commented on May 25, 2024

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.

posva avatar posva commented on May 25, 2024

Do you have an example that requires renaming the firebase.json file? Does that work with Firebase tools?

from vuefire.

Subin-Qreative avatar Subin-Qreative commented on May 25, 2024

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.

Subin-Qreative avatar Subin-Qreative commented on May 25, 2024

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.

juane1000 avatar juane1000 commented on May 25, 2024

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.

posva avatar posva commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.