From 5cabe9585f82c17bfb41583b9919c07530fbef12 Mon Sep 17 00:00:00 2001 From: xyzones Date: Tue, 6 Feb 2024 10:57:52 +0100 Subject: [PATCH] docs: s3 The "images.domains" configuration is deprecated (#6321) --- 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/s3.mdx | 8 ++++++-- www/apps/docs/content/plugins/file-service/spaces.md | 10 +++++++--- 4 files changed, 27 insertions(+), 10 deletions(-) diff --git a/www/apps/docs/content/plugins/file-service/local.md b/www/apps/docs/content/plugins/file-service/local.md index b661dcce30..cf8b1dc153 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 c9f5c80311..86ddece907 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/s3.mdx b/www/apps/docs/content/plugins/file-service/s3.mdx index 10682b1709..ae33588c4b 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", ], }, }) diff --git a/www/apps/docs/content/plugins/file-service/spaces.md b/www/apps/docs/content/plugins/file-service/spaces.md index d8af54b741..70b62ebb02 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:"", + }, // ... - "", ], }, })