Changed firebase to use ENV variable for staging.
This commit is contained in:
@@ -7,3 +7,6 @@ ALL CHANGES MUST BE MADE USING LOCAL CONSOLE TO ENSURE DATABASE MIGRATION FILES
|
|||||||
|
|
||||||
To Start Hasura CLI:
|
To Start Hasura CLI:
|
||||||
npx hasura console --admin-secret Dev-BodyShopAppBySnaptSoftware!
|
npx hasura console --admin-secret Dev-BodyShopAppBySnaptSoftware!
|
||||||
|
|
||||||
|
Migrating to Staging:
|
||||||
|
npx hasura migrate apply --endpoint https://bodyshop-staging-db.herokuapp.com/ --admin-secret Staging-BodyShopAppBySnaptSoftware!
|
||||||
@@ -1,23 +1,13 @@
|
|||||||
import firebase from "firebase/app";
|
import firebase from "firebase/app";
|
||||||
import "firebase/firestore";
|
import "firebase/firestore";
|
||||||
import "firebase/auth";
|
import "firebase/auth";
|
||||||
import "firebase/database"
|
import "firebase/database";
|
||||||
|
|
||||||
const config = {
|
|
||||||
apiKey: "AIzaSyDV9MsSHZmpLtjoaTK_ObvjFaJ-nMSd2KA",
|
|
||||||
authDomain: "bodyshop-dev-b1cb6.firebaseapp.com",
|
|
||||||
databaseURL: "https://bodyshop-dev-b1cb6.firebaseio.com",
|
|
||||||
projectId: "bodyshop-dev-b1cb6",
|
|
||||||
storageBucket: "bodyshop-dev-b1cb6.appspot.com",
|
|
||||||
messagingSenderId: "922785209028",
|
|
||||||
appId: "1:922785209028:web:96e9df15401eee5d784791",
|
|
||||||
measurementId: "G-2D5378VCHE"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
const config = JSON.parse(process.env.REACT_APP_FIREBASE_CONFIG);
|
||||||
firebase.initializeApp(config);
|
firebase.initializeApp(config);
|
||||||
|
|
||||||
export const createUserProfileDocument = async (userAuth, additionalData) => {
|
export const createUserProfileDocument = async (userAuth, additionalData) => {
|
||||||
//Needs to be redone to write to GQL database.
|
//Needs to be redone to write to GQL database.
|
||||||
console.log("userAuth from firebase Utils", userAuth);
|
console.log("userAuth from firebase Utils", userAuth);
|
||||||
if (!userAuth) return;
|
if (!userAuth) return;
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
endpoint: https://bodyshop-dev-db.herokuapp.com
|
endpoint: https://bodyshop-dev-db.herokuapp.com
|
||||||
|
#endpoint: https://bodyshop-staging-db.herokuapp.com/
|
||||||
Reference in New Issue
Block a user