Repository navigation
Expand file tree
/
Copy pathlaunch.ts
More file actions
27 lines (25 loc) · 1.5 KB
/
Copy pathlaunch.ts
File metadata and controls
27 lines (25 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Launch switches for flows that are built but not yet live.
*
* While a switch is `false`, its page shows a teaser instead of the real flow:
* REGISTRATIONS_OPEN = false → /register renders <RegistrationsOpeningSoon />, and the REGISTER buttons lead there
* MERCH_STORE_OPEN = false → /merch renders <MerchDroppingSoon />
*
* The real flows are untouched and come back by flipping the switch to `true`:
* registration: src/app/register/redirectToRegistrationFlow.ts → the auth / registration overlay in Innovision.tsx
* merch: /merch renders <MerchStore /> (src/components/merch), with the pieces and form in src/config/merch.ts
* The MERCH links and #/merch lead to /merch either way.
*
* REGISTRATIONS_OPEN gates the proxy auth gate, /register, the REGISTER buttons and the /api/register + /api/upload
* writes (src/lib/registration-gate.ts), the same way in every environment.
*/
export const REGISTRATIONS_OPEN = true;
export const MERCH_STORE_OPEN = true;
/** Review-only registration preview. Keep false in production: false disables ALL mock users,
* preview links, simulated uploads and simulated approval. Real API authorization is
* always enforced; preview data is kept in memory and never submitted to the backend. */
export const REGISTRATION_PREVIEW_ENABLED = false;
/** Where the REGISTER buttons point while registrations are closed. */
export const REGISTRATIONS_SOON_PATH = '/register';
/** The merch page, where every MERCH link points. */
export const MERCH_PATH = '/merch';