fix: disable prefetch on team page event type links to prevent Google rate limits#27260
Merged
sean-brydon merged 1 commit intomainfrom Jan 26, 2026
Merged
Conversation
… rate limits Co-Authored-By: alex@cal.com <me@alexvanandel.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
sean-brydon
approved these changes
Jan 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Disables Next.js Link prefetching on the team page (
/team/[slug]) to prevent excessive server-side rendering of event type pages when viewing a team's profile.When a team has many event types, Next.js automatically prefetches all linked event type pages when they come into the viewport. This triggers server-side rendering for each page, which can make Google Calendar API calls and cause rate limiting issues.
This follows the existing pattern in
users-public-view.tsxwhich already hasprefetch={false}on event type links with the comment: "Don't prefetch till the time we drop the amount of javascript in [user][type] page which is impacting score for [user] page"Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
i.cal.com/engineering)Checklist
Human Review Checklist
prefetch={false}is the correct approach to prevent the prerendering behavior shown in the screenshotLink to Devin run: https://app.devin.ai/sessions/20d6b6950eab4841b44f488bbf30fbc9
Requested by: @emrysal