feat(dev): add NODE_ENV-gated auth + paywall bypass for local previews
Adds NEXT_PUBLIC_DEV_AUTH_BYPASS (frontend) and DEV_AUTH_BYPASS (backend) flags. Both require non-production NODE_ENV. When on: - Frontend skips Supabase auth, injects stub user + Professional-tier subscription, and shows an amber "dev mode" banner. - Backend skips JWT verification and paywall middleware. Production deployments ignore these flags by NODE_ENV check.
| Repository | hosman20/mike-2.0 |
|---|---|
| Author | z <z@zs-MacBook-Pro.local> |
| Authored | |
| Parents | 2034b855 |
| Stats | 15 files changed , +383 |
| Part of | NODE_ENV-gated auth + paywall bypass for local previews |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-85348e4c.md
from inside the repo you want the change in.