This repository was archived by the owner on Jul 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ import redirects from './redirects.mjs'
9
9
10
10
const foo = await redirects ( )
11
11
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' )
13
15
const lines = `\n# Generated by generate-redirects.mjs from Git history\n${ redirectLines } \n`
14
16
15
17
console . log ( 'Redirects:\n' , lines )
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ async function readNotionMigrationRedirects() {
42
42
// To go around that, we add a new field 'force' that the script that
43
43
// generate the final _redirects file used by Netlify uses to append
44
44
// 301! on that entry, effectively forcing the redirection.
45
- for ( let entry of data . redirections ) {
46
- entry [ " force" ] = true
45
+ for ( let entry of data . redirections ) {
46
+ entry [ ' force' ] = true
47
47
}
48
48
return data
49
49
}
You can’t perform that action at this time.
0 commit comments