aboutsummaryrefslogtreecommitdiffstats
path: root/next.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-18 12:29:36 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-18 12:29:36 +0100
commita8f22f1a8226aa46ebe32246b76cb43b7869d0e7 (patch)
treef796fce2c3ee5c13515d914f3c3f746eeeb1751d /next.config.js
parentd42f9e348261fd1738e7977db89b06007ec8da10 (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.
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js3
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',