Skip to content

Remove demo mode — use separate Supabase project instead#14

Merged
WWStoryMode merged 1 commit into
mainfrom
feature/remove-demo-mode
Mar 4, 2026
Merged

Remove demo mode — use separate Supabase project instead#14
WWStoryMode merged 1 commit into
mainfrom
feature/remove-demo-mode

Conversation

@WWStoryMode

Copy link
Copy Markdown
Owner

Summary

  • Deletes src/lib/config/demo.ts and removes all DEMO_MODE/isDemoMode/DEMO_IDS references across 15 files
  • Eliminates DemoAuthProvider — the app now uses a single ProductionAuthProvider code path
  • API routes always require real Supabase auth (no more isDemoMode bypass)
  • To run a demo, point SUPABASE_URL and SUPABASE_ANON_KEY at a separate Supabase project seeded with supabase/seed.sql

Test plan

  • npm run type-check passes (no references to deleted exports)
  • grep -r "DEMO_MODE\|isDemoMode\|DEMO_IDS" src/ returns nothing
  • Unauthenticated user sees sign-in/register page, middleware redirects protected routes to /login
  • Authenticated user sees name + RoleSwitcher + sign-out in header, role switching works
  • API routes return 401 when not authenticated
  • No "DEMO" badge in header

🤖 Generated with Claude Code

Eliminates the DEMO_MODE/isDemoMode branching logic across 15 files.
The app now has a single code path using real Supabase auth. To run a
demo, point SUPABASE_URL and SUPABASE_ANON_KEY at a Supabase project
seeded with demo data via supabase/seed.sql.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
project-firefly Building Building Preview, Comment Mar 4, 2026 7:25pm

@WWStoryMode
WWStoryMode merged commit e7d957f into main Mar 4, 2026
2 of 3 checks passed
@WWStoryMode
WWStoryMode deleted the feature/remove-demo-mode branch March 4, 2026 19:25
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