From 7c47d686f512c7a44cf56f30f52f0663fe656cfa Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 18 Dec 2025 20:06:35 +0200 Subject: [PATCH] fix: Use static value for revalidate segment config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Next.js requires segment config exports (like `revalidate`) to be static values, not expressions. Changed from CACHE_TTL.HOMEPAGE_CONTENT to the literal value 3600 (1 hour). Fixes CI build failure caused by "Unsupported node type MemberExpression" error during static analysis of route segment config. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/api/homepage/content/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/homepage/content/route.ts b/app/api/homepage/content/route.ts index a27b098..9dc1629 100644 --- a/app/api/homepage/content/route.ts +++ b/app/api/homepage/content/route.ts @@ -27,7 +27,8 @@ import { unstable_cache } from 'next/cache'; export const runtime = 'edge'; // ISR revalidation configuration -export const revalidate = CACHE_TTL.HOMEPAGE_CONTENT; +// Note: Must be a static value, not an expression (Next.js requirement) +export const revalidate = 3600; // 1 hour (matches CACHE_TTL.HOMEPAGE_CONTENT) // ============================================================================ // TYPES