Skip to content

Lewis/lp gate - #29

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

Lewis/lp gate#29
carhartlewis merged 3 commits into
mainfrom
lewis/lp-gate

Conversation

@carhartlewis

@carhartlewis carhartlewis commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Make the landing page opt-in. By default, strangers only see /sign-in; set IS_MARKETING to the literal "true" to serve /. The proxy reads this flag on every request, so toggling it applies immediately without a rebuild.

  • Migration
    • Set IS_MARKETING="true" to serve / to unauthenticated users.
    • No action needed for signed-in users; they are routed to their workspace as before.

Written for commit bde4fd5. Summary will update on new commits.

Review in cubic

- Added `isMarketing` function to determine if the marketing feature is enabled based on the `IS_MARKETING` environment variable.
- Updated the proxy logic to conditionally show the landing page based on the marketing flag.
- Modified tests to validate the behavior of the landing page visibility based on the marketing flag.
…sage

- Added documentation for the `IS_MARKETING` environment variable in .env.example to explain its role in controlling landing page visibility.
- Updated api.md to reflect changes in landing page access based on the marketing flag, clarifying the behavior for unauthenticated users and the implications of the flag on routing.
@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:40pm
crm-api Ready Ready Preview Aug 4, 2026 9:40pm
crm-app Ready Ready Preview Aug 4, 2026 9:40pm

Request Review

- Added detailed documentation in environment.md explaining the functionality of the `IS_MARKETING` environment variable and its impact on landing page visibility.
- Clarified the conditions under which the landing page is displayed or redirected for signed-out users, emphasizing the importance of the flag's value.
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