docs: s3 The "images.domains" configuration is deprecated (#6321)

This commit is contained in:
xyzones
2024-02-06 10:57:52 +01:00
committed by GitHub
parent 882aa549bd
commit 5cabe9585f
4 changed files with 27 additions and 10 deletions

View File

@@ -87,10 +87,14 @@ const { withStoreConfig } = require("./store-config")
module.exports = withStoreConfig({
// ...
images: {
domains: [
images: {
remotePatterns: [
// ...
{
protocol: "http", // or https
hostname:"<BACKEND_URL>",
},
// ...
"<BACKEND_URL>",
],
},
})

View File

@@ -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",
],
},
})
```

View File

@@ -220,9 +220,13 @@ const { withStoreConfig } = require("./store-config")
module.exports = withStoreConfig({
// ...
images: {
domains: [
remotePatterns: [
// ...
{
protocol: "https",
hostname:"<BUCKET_NAME>.s3.<REGION>.amazonaws.com",
},
// ...
"<BUCKET_NAME>.s3.<REGION>.amazonaws.com",
],
},
})

View File

@@ -150,10 +150,14 @@ const { withStoreConfig } = require("./store-config")
module.exports = withStoreConfig({
// ...
images: {
domains: [
images: {
remotePatterns: [
// ...
{
protocol: "https",
hostname:"<YOUR_SPACE_URL>",
},
// ...
"<YOUR_SPACE_URL>",
],
},
})