Skip to content

Commit e3f3e4b

Browse files
committed
fix(imageLazy): rename file and add permanent redirect
1 parent ef22b4e commit e3f3e4b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

next.config.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@ const withNextra = require('nextra')({
22
theme: 'nextra-theme-docs',
33
themeConfig: './theme.config.jsx'
44
})
5-
6-
module.exports = withNextra()
7-
5+
6+
module.exports = withNextra({
7+
async redirects() {
8+
return [
9+
{
10+
source: '/Loading/Find-Above-The-Fold-Lazy-Loades-Images',
11+
destination: '/Loading/Find-Above-The-Fold-Lazy-Loaded-Images',
12+
permanent: true,
13+
},
14+
]
15+
},
16+
})
17+
818
// If you have other Next.js configurations, you can pass them as the parameter:
919
// module.exports = withNextra({ /* other next.js config */ })
File renamed without changes.

0 commit comments

Comments
 (0)