mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-04 23:16:47 +00:00
feat: lots of refactors and improvements
This commit is contained in:
14
lib/db.ts
14
lib/db.ts
@@ -1,14 +0,0 @@
|
||||
import * as firestore from '@google-cloud/firestore'
|
||||
import * as config from './config'
|
||||
|
||||
export let db: firestore.Firestore = null
|
||||
export let images: firestore.CollectionReference = null
|
||||
|
||||
if (config.isPreviewImageSupportEnabled) {
|
||||
db = new firestore.Firestore({
|
||||
projectId: config.googleProjectId,
|
||||
credentials: config.googleApplicationCredentials
|
||||
})
|
||||
|
||||
images = db.collection(config.firebaseCollectionImages)
|
||||
}
|
||||
Reference in New Issue
Block a user