fix: Use static value for revalidate segment config - #8
Conversation
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 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @Dewscntd's task —— View job Code Review AnalysisReviewing this pull request for the e-commerce platform focusing on architecture, Next.js best practices, and production readiness. Todo List:
Change Analysis: The fix correctly changes Comprehensive Code ReviewArchitecture & Design - ✅ Excellent
Next.js Best Practices - ✅ Exemplary
E-commerce Specific - ✅ Production Ready
Security & Performance - ✅ Outstanding
Testing & Quality -
RecommendationsImmediate Actions:
Future Improvements:
SummaryThis is a well-executed fix that maintains excellent code quality while resolving a critical build issue. The codebase demonstrates production-ready patterns for performance, security, and maintainability. The static value change is the correct approach per Next.js requirements. Approval Status: ✅ LGTM - Ready to merge with confidence. |
Summary
revalidatesegment configCACHE_TTL.HOMEPAGE_CONTENTto static value3600(1 hour)Problem
The build was failing with:
This occurs during Next.js static analysis of route segment configs, which cannot evaluate runtime expressions.
Test plan
🤖 Generated with Claude Code