Skip to content

Commit

Permalink
Fix page caches
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed May 27, 2024
1 parent fa7f679 commit 915a710
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/generate-page-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ function getBracketContent(source: string, startSymbol = '<', endSymbol = '>') {
return source.slice(startIndex, currentIndex + 1)
}

const domain: { name: string, units: Record<string, string> } = { name: `https://${currentBranch === 'main' ? '' : currentBranch + '.'}css.master.co`, units: { docs: '/guide/installation' } }
const domain: { name: string, units: Record<string, string> } = {
name: `https://${currentBranch === 'main' ? '' : currentBranch + '.'}css.master.co`,
units: {}
}
const storage = getStorage(app)
const locale = process.env.LOCALE ?? 'en'

Expand All @@ -83,7 +86,7 @@ const file = bucket.file(name) as any as File

(async () => {
const sha = process.env.GITHUB_SHA
console.log('sha: '+ sha)
console.log('sha: ' + sha)
console.log('file name: ' + name)

try {
Expand Down

0 comments on commit 915a710

Please sign in to comment.