From 509c9b75d2c6b3e97f4a71a9b6830916f64821eb Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 16 Nov 2023 14:25:58 +0100 Subject: build(config): replace deprecated config keys * `images.domains` has been replaced with `images.remotePatterns` * remove `experimental.scrollRestoration` (I don't find the doc anymore and removing it seems to change nothing so I assume we don't need it now) --- next.config.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js index d590934..d620718 100644 --- a/next.config.js +++ b/next.config.js @@ -79,9 +79,6 @@ const securityHeaders = [ /** @type {import('next').NextConfig} */ const nextConfig = { - experimental: { - scrollRestoration: true, - }, headers() { return [ { @@ -96,7 +93,15 @@ const nextConfig = { defaultLocale: 'fr', }, images: { - domains: [backendDomain, 'secure.gravatar.com'], + remotePatterns: [ + { + hostname: backendDomain, + }, + { + protocol: 'https', + hostname: 'secure.gravatar.com', + }, + ], }, output: 'standalone', poweredByHeader: false, -- cgit v1.2.3