From 6ca375d7fa5dac025603077730168f4ffcd241e4 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 14 Jul 2023 11:26:57 +0800 Subject: [PATCH] Add cloudfront url to next config --- next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.js b/next.config.js index 3c550838..a79d3ca3 100644 --- a/next.config.js +++ b/next.config.js @@ -7,6 +7,7 @@ const nextConfig = { images: { remotePatterns: [ {protocol: 'https', hostname: 's3.amazonaws.com'}, //file upload to AWS S3 + {protocol: 'https', hostname: '*.cloudfront.net'} //...domains.map(domain => ({protocol: 'https', hostname: domain})) //user-defined image sources ] },