🐛 Add remotePattern on replicate.delivery in next.config.js

Fixes image not displayed with REPLICATE_API_TOKEN created on replicate.com
This commit is contained in:
Adrien Laugueux 2023-11-28 20:25:13 +01:00
parent 3899993261
commit 7bd3d2c7ac
No known key found for this signature in database
GPG Key ID: 45216AEEA66D0A90
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,11 @@ module.exports = {
protocol: "https", protocol: "https",
hostname: "pbxt.replicate.delivery", hostname: "pbxt.replicate.delivery",
}, },
{
protocol: "https",
hostname: "replicate.delivery",
pathname: '/pbxt/**',
},
], ],
}, },
// async headers() { // async headers() {
@ -21,7 +26,6 @@ module.exports = {
// key: 'Content-Security-Policy', // key: 'Content-Security-Policy',
// value: "default-src 'self'; img-src 'self' blob: https://replicate.com https://pbxt.replicate.delivery; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; connect-src 'self' blob:;" // value: "default-src 'self'; img-src 'self' blob: https://replicate.com https://pbxt.replicate.delivery; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; connect-src 'self' blob:;"
// } // }
// ], // ],
// }, // },
// ]; // ];