Merged in chore/redirect-update (pull request #2939)
* Update redirects * Merge * Update redirects and handle empty entries Approved-by: Linus Flood
This commit is contained in:
@@ -56,7 +56,10 @@ console.log("All prerequisites met. Generating redirect files...")
|
||||
let totalCount = 0
|
||||
for (const lang of langs.toSorted()) {
|
||||
const perf = performance.now()
|
||||
const data = await convertCsvToJson<Entry>(lang)
|
||||
const data = (await convertCsvToJson<Entry>(lang)).filter(
|
||||
(x) => x[csvHeaders.current] && x[csvHeaders.redirect]
|
||||
)
|
||||
|
||||
await createRedirectFile(data, lang)
|
||||
const duration = (performance.now() - perf).toFixed(0)
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user