Skip to content

perf: remove WithLayout from more App Router routes#19036

Merged
PeerRich merged 1 commit intomainfrom
perf/remove-WithLayout-from-more-app-router-routes
Jan 31, 2025
Merged

perf: remove WithLayout from more App Router routes#19036
PeerRich merged 1 commit intomainfrom
perf/remove-WithLayout-from-more-app-router-routes

Conversation

@hbjORbj
Copy link
Copy Markdown
Contributor

@hbjORbj hbjORbj commented Jan 31, 2025

What does this PR do?

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A - I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

@graphite-app graphite-app Bot requested a review from a team January 31, 2025 17:48
@keithwillcode keithwillcode added consumer core area: core, team members only labels Jan 31, 2025
@dosubot dosubot Bot added the performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive label Jan 31, 2025
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Jan 31, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (01/31/25)

1 reviewer was added to this PR based on Keith Williams's automation.

@hbjORbj hbjORbj changed the title perf: remove withlayout from more app router routes perf: remove WithLayout from more App Router routes Jan 31, 2025
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 31, 2025

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

Name Status Preview Comments Updated (UTC)
cal-com-ui-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2025 5:55pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Jan 31, 2025 5:55pm
calcom-web-canary ⬜️ Ignored (Inspect) Jan 31, 2025 5:55pm

Comment on lines -12 to -16
if (session) {
return {
redirect: { destination: "/" },
};
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be handled directly in RSC in /auth/signin/page.tsx

Comment on lines +18 to +21
const session = await getServerSession({ req: context.req });
if (session) {
redirect("/");
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic tranferred from @server/lib/auth/signin/getServerSideProps

@github-actions
Copy link
Copy Markdown
Contributor

E2E results are ready!

@PeerRich PeerRich merged commit 564cc3a into main Jan 31, 2025
@PeerRich PeerRich deleted the perf/remove-WithLayout-from-more-app-router-routes branch January 31, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consumer core area: core, team members only performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants