Closed stevennt closed 2 months ago
Hi, how to specify the Firebase config in the production correctly? I tried to put the below in but did not work. Tks.
The firebase config like this:
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======" };
Hey @stevennt , It should be one line stringfied JSON. You can use JSON.stringfy(FIREBASE_CONFIG) and paste it in .env file.
.env
Works like a charm. Thanks!
Hi, how to specify the Firebase config in the production correctly? I tried to put the below in but did not work. Tks.
The firebase config like this:
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======" };