Skip to content
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

Firebase: how to specify the Firebase environment correctly? #97

Closed
stevennt opened this issue Jun 9, 2024 · 2 comments
Closed

Firebase: how to specify the Firebase environment correctly? #97

stevennt opened this issue Jun 9, 2024 · 2 comments

Comments

@stevennt
Copy link

stevennt commented Jun 9, 2024

Hi, how to specify the Firebase config in the production correctly? I tried to put the below in but did not work. Tks.

image image

The firebase config like this:

image

VITE_NODE_ENV=production VITE_FIREBASE_CONFIG={ apiKey: "===============", authDomain: "=====saas.firebaseapp.com", projectId: "====-saas", storageBucket: "=======-saas.appspot.com", messagingSenderId: "=====", appId: "1:=====:web:4d222293978711fc8d96ea", measurementId: "G-P======" };

@erdkse
Copy link
Owner

erdkse commented Jun 9, 2024

Hey @stevennt , It should be one line stringfied JSON. You can use JSON.stringfy(FIREBASE_CONFIG) and paste it in .env file.

@stevennt
Copy link
Author

stevennt commented Jun 9, 2024

Works like a charm. Thanks!

@stevennt stevennt closed this as completed Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants