Files
Compass/web/lib/dev-flags.ts
MartinBraquet 0136f1f386 Add search demo video generation and integration
- Introduced `capture-search.mjs` script for end-to-end mobile search flow captures.
- Added `SearchDemo` scene as a Remotion composition for the home-page hero clip.
- Integrated dynamic video selection based on theme in `home/search-demo.tsx` component.
- Included `fetch-media.mjs` script for fetching demo assets during build.
- Enabled optional email verification bypass for local captures (`dev-flags.ts`).
- Updated related documentation and scripts for media creation and deployment.
2026-07-22 01:39:45 +02:00

18 lines
854 B
TypeScript

import {IS_LOCAL} from 'common/hosting/constants'
/**
* Render the message composer for an unverified account.
*
* Needed by `media-creator/scripts/capture-search.mjs`: the marketing clip ends on someone reaching
* out, and against a fresh local seed the viewer account has no verified email, so the payoff shot
* would otherwise be the "verify your email" error state.
*
* This only changes which UI is drawn. The real enforcement is server-side in
* `backend/api/src/create-private-user-message-channel.ts`, which still rejects unverified senders with
* a 403 — so this cannot be used to actually message anyone, here or anywhere else.
*
* Enable with NEXT_PUBLIC_SKIP_EMAIL_VERIFICATION=1 in a local .env, running `yarn dev`.
*/
export const skipEmailVerification =
IS_LOCAL && process.env.NEXT_PUBLIC_SKIP_EMAIL_VERIFICATION === '1'