hosman20 builds a local-preview escape hatch with a safety belt
A dev-mode bypass that turns off login and the paywall on a laptop - and refuses to turn them off in production.
Working on a paid product is awkward when every click has to go through a login screen and a subscription check. hosman20's fork adds a pair of switches that let the team skip both while running the app locally: the backend stops verifying identity tokens, the frontend pretends a fully paid-up account is signed in, and an amber banner across the top of the screen makes sure nobody forgets they're in this mode.
The interesting bit is the belt-and-braces design. The switches only work if the app knows it isn't running in production, so a flag accidentally left on in a live deploy does nothing. Both sides of the app also share the same fake user ID, so anything the app stores against a customer - subscription records, file storage - lines up cleanly between the two halves.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?