From d6908bc27e504d7fcef491e09487a055e890ba27 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Thu, 27 Nov 2025 13:38:18 +0100 Subject: [PATCH] refactor: enable scroll restoration in Next.js configuration --- apps/infoalloggi/next.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/infoalloggi/next.config.ts b/apps/infoalloggi/next.config.ts index 919de2d..a881f31 100644 --- a/apps/infoalloggi/next.config.ts +++ b/apps/infoalloggi/next.config.ts @@ -25,6 +25,7 @@ async function createNextConfig(): Promise { removeConsole: false, }, experimental: { + scrollRestoration: true, // esmExternals: "loose", // This if react-pdf gives compilation issues }, generateBuildId: async () => buildId,