From ad0ccd9991d30428d682fe98b659790a727d2ca4 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Mon, 14 Nov 2022 00:08:16 +0000 Subject: [PATCH] Whitelist localhost for images --- next.config.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index a843cbe..28d7e45 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,17 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode: true, -} + reactStrictMode: true, -module.exports = nextConfig + images: { + remotePatterns: [ + { + protocol: "http", + hostname: "localhost", + port: "3000", + pathname: "/api/files/**", + }, + ], + }, +}; + +module.exports = nextConfig;