Firebase config best practice: Where to put in a Nuxt app? #1430
Unanswered
dosstx
asked this question in
Questions and Help
Replies: 1 comment
-
The config should be in nuxt config. It's accessible via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question about best practices when using Nuxt and Nuxt-vuefire:
I have my firebase config in
nuxt.config.ts
, but I also have the same config in auseFirebase()
composable for using the Firebase JS SDK within various components (ie, login pages, etc).Is this good or should I somehow be using runtimeConfig so I am not repeating myself twice?
Update: I saw this: #1411
I assume that's the same thing I'm talking about?
Beta Was this translation helpful? Give feedback.
All reactions