Skip to content

Add production waitlist email verification#9

Open
leoisadev1 wants to merge 1 commit into
mainfrom
t3code/7b978989
Open

Add production waitlist email verification#9
leoisadev1 wants to merge 1 commit into
mainfrom
t3code/7b978989

Conversation

@leoisadev1
Copy link
Copy Markdown
Member

@leoisadev1 leoisadev1 commented May 27, 2026

Summary

  • Replace production sign-up gating with a Resend-backed waitlist email verification flow
  • Redirect production /sign-in traffic to /sign-up while keeping preview auth behavior available
  • Add Convex waitlist storage/code verification and update build chunking/size checks for current TanStack output

Validation

  • bun run lint
  • bun run check-types
  • bun test scripts/build-size.test.ts scripts/auth-redirects.test.ts scripts/auth-errors.test.ts
  • bun run build

Production config

  • Set RESEND_API_KEY on the production Convex deployment
  • Set EMAIL_FROM on the production Convex deployment

Summary by cubic

Adds a production waitlist email verification flow using Convex actions and Resend to replace public sign-ups. Also redirects unauthenticated production /sign-in to /sign-up and updates bundling and build-size checks.

  • New Features

    • Production sign-up uses a 6‑digit waitlist code sent via Resend; Convex stores entries in waitlistEntries, enforces cooldowns, and verifies codes.
    • In production, unauthenticated /sign-in redirects to /sign-up; preview auth is unchanged.
    • Worktree-scoped dev: WORKTREE_NAME drives portless domains; scripts/setup-agentic-convex.ts creates/selects per‑worktree Convex dev deployments and syncs env.
    • Build uses Rolldown code-splitting groups; build-size checks now support .output/public and related turbo outputs.
  • Migration

    • In the production Convex env, set RESEND_API_KEY and EMAIL_FROM (optionally SITE_URL).
    • For local dev, run bun run dev:setup (or bun run dev:setup:local) to create/select a per‑worktree deployment and sync apps/web/.env.

Written for commit 1992486. Summary will update on new commits. Review in cubic

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 27, 2026

Warning

Review limit reached

@leoisadev1, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 30 minutes and 33 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1278573e-367c-4a29-8be8-9d1513d2edf4

📥 Commits

Reviewing files that changed from the base of the PR and between 4228e43 and 1992486.

⛔ Files ignored due to path filters (1)
  • packages/backend/convex/_generated/api.d.ts is excluded by !**/_generated/**
📒 Files selected for processing (8)
  • apps/web/src/components/sign-in-form.tsx
  • apps/web/src/components/sign-up-form.tsx
  • apps/web/src/routes/sign-in.tsx
  • apps/web/vite.config.ts
  • packages/backend/convex/schemaProductIdentityTables.ts
  • packages/backend/convex/waitlist.ts
  • scripts/build-size.ts
  • turbo.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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