From c05dc2b9107878bb2b937558656dd131cc7a65bc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 Jan 2026 17:39:11 +0700 Subject: [PATCH] fix(next-config): guard BLOB_STORE_ID in images.remotePatterns to avoid Next.js crash --- next.config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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: {