docs: s3 The "images.domains" configuration is deprecated (#6321)
This commit is contained in:
@@ -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>",
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -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",
|
||||
],
|
||||
},
|
||||
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
@@ -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",
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -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>",
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user