Skip to content

Fix navigation menu cache issue in production#57

Merged
nucliweb merged 1 commit into
mainfrom
snippet/Prefetch-Resource-Validation
Feb 12, 2026
Merged

Fix navigation menu cache issue in production#57
nucliweb merged 1 commit into
mainfrom
snippet/Prefetch-Resource-Validation

Conversation

@nucliweb

Copy link
Copy Markdown
Owner

Summary

  • Add prebuild script to clean Next.js cache before builds
  • Update sitemap with newly generated pages
  • Fix navigation menu not showing new pages in production

Problem

The navigation menu for "Prefetch Resource Validation" and "Validate Preload Async/Defer Scripts" only appeared on their specific URLs in production, not on other pages like /Loading/TTFB. The issue was caused by stale Next.js build cache in Vercel.

Solution

Added a prebuild script that removes the .next directory before each build, ensuring a clean build without cache-related issues.

Testing

  • ✅ Local build now generates all 31 pages correctly
  • ✅ Sitemap includes all pages
  • ✅ Navigation structure is complete

After merge, Vercel will do a clean deploy and the navigation menu should appear correctly on all pages.

Fix navigation menu issue where new pages weren't appearing in production.
The problem was caused by stale Next.js build cache in Vercel.

This prebuild script ensures a clean build by removing .next directory
before each build, preventing cache-related issues.
@vercel

vercel Bot commented Feb 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webperf-snippets Ready Ready Preview, Comment Feb 12, 2026 11:25pm
webperf-snippets-u6am Ready Ready Preview, Comment Feb 12, 2026 11:25pm

@nucliweb nucliweb merged commit e047724 into main Feb 12, 2026
3 checks passed
@nucliweb nucliweb deleted the snippet/Prefetch-Resource-Validation branch February 12, 2026 23:25
nucliweb added a commit that referenced this pull request Feb 25, 2026
…tion

Fix navigation menu cache issue in production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant