Skip to content

Commit 9a0382d

Browse files
author
Alex Patterson
committed
packages
1 parent 1798d7e commit 9a0382d

File tree

6 files changed

+3828
-3070
lines changed

6 files changed

+3828
-3070
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
This is a sample application showcasing the power of Next.js.
44
This git repository serves as a the guide to walk through a series of lessons hosted on:
55

6-
- [AJonP Module #1](https://ajonp.com/courses/nextjs9/nextjs-using-materialui-and-firebase-intro/)
6+
- [AJonP Module #1](https://codingcat.dev/courses/nextjs9/)
77
- [AJonP YouTube Tutorial](http://bit.ly/ajonp-youtube-sub)

lib/firebase.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
const firebaseConfig = {
2-
apiKey: 'AIzaSyCXLldoMUB_AxaLpvG4pQ9Pzg9bEqpMgTA',
3-
authDomain: 'ajonp-ajs-books.firebaseapp.com',
4-
databaseURL: 'https://ajonp-ajs-books.firebaseio.com',
5-
projectId: 'ajonp-ajs-books',
6-
storageBucket: 'ajonp-ajs-books.appspot.com',
7-
messagingSenderId: '936263241017',
8-
appId: '1:936263241017:web:5faee456c1ed2da8'
2+
apiKey: "AIzaSyCXLldoMUB_AxaLpvG4pQ9Pzg9bEqpMgTA",
3+
authDomain: "ajonp-ajs-books.firebaseapp.com",
4+
databaseURL: "https://ajonp-ajs-books.firebaseio.com",
5+
projectId: "ajonp-ajs-books",
6+
storageBucket: "ajonp-ajs-books.appspot.com",
7+
messagingSenderId: "936263241017",
8+
appId: "1:936263241017:web:5faee456c1ed2da8",
99
};
1010
export default async function loadFirebase() {
11-
const firebase = await import('firebase/app');
12-
await import('firebase/firestore');
11+
const firebase = await import("firebase/app");
12+
await import("firebase/firestore");
1313
try {
1414
if (!firebase.apps.length) {
1515
const app = firebase.initializeApp(firebaseConfig);
@@ -20,7 +20,7 @@ export default async function loadFirebase() {
2020
// not an actual error when we're hot-reloading
2121
console.log(err);
2222
if (!/already exists/.test(err.message)) {
23-
console.error('Firebase initialization error', err.stack);
23+
console.error("Firebase initialization error", err.stack);
2424
}
2525
}
2626
return firebase;

0 commit comments

Comments
 (0)