From e0dc97b57d856d9a8f045fbf23976053a3431af4 Mon Sep 17 00:00:00 2001 From: selvi Date: Thu, 11 Jun 2026 17:24:30 +0530 Subject: [PATCH] build issue fixed --- next.config.mjs | 3 ++- src/app/api/reviews/route.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index ba5aaa4..d7186e3 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,8 +1,9 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + output: 'export', trailingSlash: true, images: { - unoptimized: true, // ✅ needed + unoptimized: true, }, }; diff --git a/src/app/api/reviews/route.js b/src/app/api/reviews/route.js index a5c77c1..0d23d1b 100644 --- a/src/app/api/reviews/route.js +++ b/src/app/api/reviews/route.js @@ -1,6 +1,6 @@ import { fallbackGoogleReviews } from '@/lib/reviewUtils'; -export const dynamic = 'force-dynamic'; +export const dynamic = 'force-static'; const SERPAPI_URL = 'https://serpapi.com/search.json?engine=google_maps_reviews&hl=en';