Skip to content

Lewis/lp gate - #30

Merged
carhartlewis merged 2 commits into
mainfrom
lewis/lp-gate
Aug 4, 2026
Merged

Lewis/lp gate#30
carhartlewis merged 2 commits into
mainfrom
lewis/lp-gate

Conversation

@carhartlewis

@carhartlewis carhartlewis commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Fixes redirect loops around sign-in and tightens public route gating. /sign-in always passes through, and the landing page is public only when the marketing flag is on.

  • Bug Fixes

    • Never redirect when the request path is /sign-in to prevent loops and keep auth provider query params intact.
    • Added tests to ensure /sign-in is never the redirect target for signed-in or signed-out users.
  • Refactors

    • Removed the PUBLIC list; isPublic now only allows the landing page when marketing is enabled.
    • Removed /sign-in from UNGATED; only /grant-access and /eve remain.

Written for commit 73875f0. Summary will update on new commits.

Review in cubic

- Changed the redirect behavior for unauthenticated users to use the `sendTo` function instead of a direct URL redirect to the sign-in path.
- This modification enhances the proxy's handling of user access based on authentication status.
- Updated the proxy to ensure that requests to the sign-in path do not trigger a redirect, maintaining user experience for unauthenticated users.
- Adjusted the public access logic to streamline the handling of landing page visibility based on authentication status.
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
crm-agent Ready Ready Preview Aug 4, 2026 9:44pm
crm-api Ready Ready Preview Aug 4, 2026 9:44pm
crm-app Building Building Preview Aug 4, 2026 9:44pm

Request Review

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