Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e3f3e4b

Browse filesBrowse files
committed
fix(imageLazy): rename file and add permanent redirect
1 parent ef22b4e commit e3f3e4b
Copy full SHA for e3f3e4b

File tree

2 files changed

+13
-3
lines changed
Filter options

2 files changed

+13
-3
lines changed

‎next.config.js

Copy file name to clipboardExpand all lines: next.config.js
+13-3Lines 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 */ })

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.