First of all, thank you for delivering a great project. Yesterday I've decided to build a blog on top of Firebase, just for fun. Because server rendering is important for a blogging system, I've decided to go for now.
I've followed the instructions, and I've created this pages/index.js
import React from 'react';
import Firebase from 'firebase';
const firebaseConfig = {
authDomain: "blog-b3c36.firebaseapp.com",
databaseURL: "https://blog-b3c36.firebaseio.com",
storageBucket: "blog-b3c36.appspot.com",
messagingSenderId: "117409352414"
};
const blogApp = Firebase.initializeApp(firebaseConfig);
blogApp.database().ref('blog/articles').set('test');
export default () => <div>Hello world, this is gonna be an awesome Firebase blog!</div>
(The apiKey is valid and permissions are set for everybody to write/read so you that anyone can debug this)
Everything worked fine till the point where I had a typo in my app, then it warned about the error and after fixing it I've received:
Error: Firebase App named '[DEFAULT]' already exists.
at R (/Users/janvorcak/WebstormProjects/firebase-blog/node_modules/firebase/app-node.js:22:335)
at Object.initializeApp (/Users/janvorcak/WebstormProjects/firebase-blog/node_modules/firebase/app-node.js:21:29)
at Object.<anonymous> (/Users/janvorcak/WebstormProjects/firebase-blog/.next/dist/pages/index.js:25:34)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
5.txt
You're currently signed in as
shahriarraj121@gmail.com
shahriar raj
Displaying 5.txt.
Hi,
First of all, thank you for delivering a great project. Yesterday I've decided to build a blog on top of Firebase, just for fun. Because server rendering is important for a blogging system, I've decided to go for
now
.I've followed the instructions, and I've created this
pages/index.js
(The apiKey is valid and permissions are set for everybody to write/read so you that anyone can debug this)
Everything worked fine till the point where I had a typo in my app, then it warned about the error and after fixing it I've received:
5.txt You're currently signed in as shahriarraj121@gmail.com shahriar raj Displaying 5.txt.