From 6b40c78073990a704c914800722d260fd666e64e Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Mon, 3 Oct 2022 09:46:00 +0200 Subject: [PATCH] feat(apps/web): enable nextjs experimental features --- apps/web/next.config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 53e0a42..2ce970e 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -1,5 +1,13 @@ const withTM = require("next-transpile-modules")(["ui"]); -module.exports = withTM({ +/** @type {import('next').NextConfig} */ +const nextConfig = { reactStrictMode: true, -}); + swcMinify: true, + experimental: { + newNextLinkBehavior: true, + scrollRestoration: true, + }, +} + +module.exports = withTM(nextConfig);