From 7bd3d2c7acbbdfefa908f0bc5b973fe38d6031d5 Mon Sep 17 00:00:00 2001 From: Adrien Laugueux Date: Tue, 28 Nov 2023 20:25:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20remotePattern=20on=20repli?= =?UTF-8?q?cate.delivery=20in=20next.config.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes image not displayed with REPLICATE_API_TOKEN created on replicate.com --- next.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 18c4373..44a831a 100644 --- a/next.config.js +++ b/next.config.js @@ -10,6 +10,11 @@ module.exports = { protocol: "https", hostname: "pbxt.replicate.delivery", }, + { + protocol: "https", + hostname: "replicate.delivery", + pathname: '/pbxt/**', + }, ], }, // async headers() { @@ -21,7 +26,6 @@ module.exports = { // 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:;" // } - // ], // }, // ];