Skip to content

Commit

Permalink
chore: firebase imports
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhadwen committed Aug 18, 2020
1 parent 1ce6931 commit 613fc21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { render } from 'react-dom';
import 'normalize.css';
import { GlobalStyles } from './global-styles';
import { App } from './app';
import { firebase } from './lib/firebase';
import { firebase } from './lib/firebase.prod';
import { FirebaseContext } from './context/firebase';

ReactDOM.render(
render(
<React.StrictMode>
<FirebaseContext.Provider value={{ firebase }}>
<GlobalStyles />
Expand Down
3 changes: 3 additions & 0 deletions src/lib/firebase.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/auth';

// 1) when seeding the database you'll have to uncomment this!
// import { seedDatabase } from '../seed';

const config = {
Expand All @@ -15,6 +16,8 @@ const config = {
};

const firebase = Firebase.initializeApp(config);
// 2) when seeding the database you'll have to uncomment this!
// seedDatabase(firebase);
// 3) once you have populated the database (only run once!), re-comment this so you don't get duplicate data

export { firebase };

0 comments on commit 613fc21

Please sign in to comment.