-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
37 lines (32 loc) · 1.09 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { unregister } from './registerServiceWorker';
import * as firebase from 'firebase';
// import 'bootstrap/dist/css/bootstrap.css';
import './style/css/new_style.css';
require('dotenv').config()
// Initialize Firebase
var config = {
apiKey: process.env.REACT_APP_FIREBASE_API_KEY,
authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN,
databaseURL: process.env.REACT_APP_FIREBASE_DATABASE_URL,
projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID,
storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID
};
firebase.initializeApp(config);
// class App2 extends React.Component {
// constructor() {
// super();
// }
// render() {
// return (
// <meta http-equiv="refresh" content="0; URL='http://boxaladin.asia/maintenance'" />
// );
// }
// }
//
// ReactDOM.render(<App2 />, document.getElementById('root'));
ReactDOM.render(<App />, document.getElementById('root'));
unregister();