Skip to content

Conversation

@ben-fornefeld
Copy link
Member

#34 introduced a catch-all route handler that acts as a fallback rewriter for our content pages. It had implementations of caching mechanisms, but these did not seem to work as expected in production.

This pr introduces the use of generateStaticParams to cache route invocations for the paths present in our sitemap on build time, which results in instant server responses on our rewritten pages.

@ben-fornefeld ben-fornefeld added the enhancement New feature or request label Apr 6, 2025
@ben-fornefeld ben-fornefeld self-assigned this Apr 6, 2025
@vercel
Copy link

vercel bot commented Apr 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2025 2:23pm
web-juliett ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2025 2:23pm

@ben-fornefeld ben-fornefeld merged commit 8b7d6e8 into main Apr 6, 2025
4 checks passed
@ben-fornefeld ben-fornefeld deleted the improve-rewrites branch April 6, 2025 22:00
kitchenbeats pushed a commit to kitchenbeats/botlink-dashboard that referenced this pull request Oct 20, 2025
e2b-dev#34 introduced a catch-all route handler that acts as a fallback
rewriter for our content pages. It had implementations of caching
mechanisms, but these did not seem to work as expected in production.

This pr introduces the use of `generateStaticParams` to cache route
invocations for the paths present in our `sitemap` on build time, which
results in instant server responses on our rewritten pages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants