1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Scroll restoration (#39394)

This commit is contained in:
Peter Bengtsson
2023-07-24 08:53:39 -04:00
committed by GitHub
parent 038497dfd8
commit 9dec70c78e

View File

@@ -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,
},
}