Skip to content

Commit

Permalink
Temporarily disable the firebase document storage
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikL committed Sep 24, 2024
1 parent 9d1816b commit 36c4930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ops/deploy/deploy-documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ let processDocuments = async function (resourceType) {
}
}

await database.collection(FIREBASE_DATABASE_SEGMENTS).doc(segmentInfo.id).set(segmentInfo)
// await database.collection(FIREBASE_DATABASE_SEGMENTS).doc(segmentInfo.id).set(segmentInfo)

// skipping hidden segments
if (!/^_/.test(segment)) {
Expand All @@ -238,7 +238,7 @@ let processDocuments = async function (resourceType) {
fs.outputFileSync(`${API_DIST}/${segmentPathInfo.language}/${resourceType}/${segmentPathInfo.title}/${segmentPathInfo.section ? segmentPathInfo.section + "-" : ""}${segmentPathInfo.document}/${segmentPathInfo.segment}/index.json`, JSON.stringify(segmentInfo))
}

await database.collection(FIREBASE_DATABASE_DOCUMENTS).doc(documentInfo.id).set(documentInfo)
// await database.collection(FIREBASE_DATABASE_DOCUMENTS).doc(documentInfo.id).set(documentInfo)

documentInfo.defaultStyles = deepMerge(SEGMENT_DEFAULT_BLOCK_STYLES, documentInfo.defaultStyles)
fs.outputFileSync(`${API_DIST}/${documentPathInfo.language}/${resourceType}/${documentPathInfo.title}/${documentPathInfo.section ? documentPathInfo.section + "-" : ""}${documentPathInfo.document}/index.json`, JSON.stringify(documentInfo))
Expand Down

0 comments on commit 36c4930

Please sign in to comment.