From f4d4c243d723b6017a0e53963e83d68bcc6a8508 Mon Sep 17 00:00:00 2001 From: Attila Nagy Date: Mon, 5 Feb 2024 19:21:16 +0100 Subject: [PATCH 1/2] The "images.domains" configuration is deprecated --- www/apps/docs/content/plugins/file-service/s3.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/apps/docs/content/plugins/file-service/s3.mdx b/www/apps/docs/content/plugins/file-service/s3.mdx index 10682b1709f5e..ae33588c4bff1 100644 --- a/www/apps/docs/content/plugins/file-service/s3.mdx +++ b/www/apps/docs/content/plugins/file-service/s3.mdx @@ -220,9 +220,13 @@ const { withStoreConfig } = require("./store-config") module.exports = withStoreConfig({ // ... images: { - domains: [ + remotePatterns: [ + // ... + { + protocol: "https", + hostname:".s3..amazonaws.com", + }, // ... - ".s3..amazonaws.com", ], }, }) From 04688c6b4fb151aa7239c6ddd260bd72fc1f0290 Mon Sep 17 00:00:00 2001 From: Attila Nagy Date: Tue, 6 Feb 2024 09:30:36 +0100 Subject: [PATCH 2/2] The "images.domains" configuration is deprecated --- www/apps/docs/content/plugins/file-service/local.md | 10 +++++++--- www/apps/docs/content/plugins/file-service/minio.md | 9 +++++++-- www/apps/docs/content/plugins/file-service/spaces.md | 10 +++++++--- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/www/apps/docs/content/plugins/file-service/local.md b/www/apps/docs/content/plugins/file-service/local.md index b661dcce30ff4..cf8b1dc153476 100644 --- a/www/apps/docs/content/plugins/file-service/local.md +++ b/www/apps/docs/content/plugins/file-service/local.md @@ -87,10 +87,14 @@ const { withStoreConfig } = require("./store-config") module.exports = withStoreConfig({ // ... - images: { - domains: [ + images: { + remotePatterns: [ + // ... + { + protocol: "http", // or https + hostname:"", + }, // ... - "", ], }, }) diff --git a/www/apps/docs/content/plugins/file-service/minio.md b/www/apps/docs/content/plugins/file-service/minio.md index c9f5c803119c0..86ddece907fa0 100644 --- a/www/apps/docs/content/plugins/file-service/minio.md +++ b/www/apps/docs/content/plugins/file-service/minio.md @@ -209,11 +209,16 @@ const { withStoreConfig } = require("./store-config") module.exports = withStoreConfig({ // ... images: { - domains: [ + remotePatterns: [ + // ... + { + protocol: "http", + hostname: "127.0.0.1", + }, // ... - "127.0.0.1", ], }, + }) ``` diff --git a/www/apps/docs/content/plugins/file-service/spaces.md b/www/apps/docs/content/plugins/file-service/spaces.md index d8af54b741d3d..70b62ebb029f4 100644 --- a/www/apps/docs/content/plugins/file-service/spaces.md +++ b/www/apps/docs/content/plugins/file-service/spaces.md @@ -150,10 +150,14 @@ const { withStoreConfig } = require("./store-config") module.exports = withStoreConfig({ // ... - images: { - domains: [ + images: { + remotePatterns: [ + // ... + { + protocol: "https", + hostname:"", + }, // ... - "", ], }, })