diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-16 14:25:58 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-16 14:25:58 +0100 |
| commit | 509c9b75d2c6b3e97f4a71a9b6830916f64821eb (patch) | |
| tree | 6b229f3bae1d52f4173ca2dbcd0b10223ea6234b /next.config.js | |
| parent | 7e37f2b5683deca745248d87dcbf4d6815abcc49 (diff) | |
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)
Diffstat (limited to 'next.config.js')
| -rw-r--r-- | next.config.js | 13 |
1 files changed, 9 insertions, 4 deletions
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, |
