Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 1d23eb0

Browse files
jhchabranactions-user
authored andcommitted
squash! Prettier
1 parent 868280c commit 1d23eb0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/scripts/generate-redirects.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import redirects from './redirects.mjs'
99

1010
const foo = await redirects()
1111

12-
const redirectLines = (await redirects()).map((entry) => `${entry.source} ${entry.destination}${entry.force ? ' 302!' : ''}`).join('\n')
12+
const redirectLines = (await redirects())
13+
.map(entry => `${entry.source} ${entry.destination}${entry.force ? ' 302!' : ''}`)
14+
.join('\n')
1315
const lines = `\n# Generated by generate-redirects.mjs from Git history\n${redirectLines}\n`
1416

1517
console.log('Redirects:\n', lines)

src/scripts/redirects.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function readNotionMigrationRedirects() {
4242
// To go around that, we add a new field 'force' that the script that
4343
// generate the final _redirects file used by Netlify uses to append
4444
// 301! on that entry, effectively forcing the redirection.
45-
for ( const entry of data.redirections ) {
45+
for (const entry of data.redirections) {
4646
entry.force = true
4747
}
4848
return data

0 commit comments

Comments
 (0)