diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-18 12:29:36 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-18 12:29:36 +0100 |
| commit | a8f22f1a8226aa46ebe32246b76cb43b7869d0e7 (patch) | |
| tree | f796fce2c3ee5c13515d914f3c3f746eeeb1751d | |
| parent | d42f9e348261fd1738e7977db89b06007ec8da10 (diff) | |
chore: add scroll restoration for posts list
It would be nice to restore focus as well, but it seems I can not
retrieve which posts was click on history back. I should find an
alternative later.
| -rw-r--r-- | next.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/next.config.js b/next.config.js index 59ca4f4..91c5a17 100644 --- a/next.config.js +++ b/next.config.js @@ -5,6 +5,9 @@ const backendDomain = process.env.BACKEND_URL.split('//')[1]; /** @type {import('next').NextConfig} */ const nextConfig = { + experimental: { + scrollRestoration: true, + }, i18n: { locales, defaultLocale: 'fr', |
