Scroll restoration (#39394)
This commit is contained in:
@@ -57,5 +57,8 @@ export default {
|
||||
// but many of our pages are much larger.
|
||||
// The warning is: https://nextjs.org/docs/messages/large-page-data
|
||||
largePageDataBytes: 1024 * 1024, // 1 MB
|
||||
|
||||
// This makes it so that going Back will scroll to the previous position
|
||||
scrollRestoration: true,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user