diff --git a/next.config.js b/next.config.js index 30a441d77..bad44b6a8 100644 --- a/next.config.js +++ b/next.config.js @@ -81,10 +81,14 @@ const nextConfig = withBundleAnalyzer({ hostname: 'img.youtube.com', port: '', }, - { - protocol: 'https', - hostname: process.env.BLOB_STORE_ID, - }, + ...(process.env.BLOB_STORE_ID + ? [ + { + protocol: 'https', + hostname: process.env.BLOB_STORE_ID, + }, + ] + : []), ].filter(Boolean), }, sassOptions: {