Phase 0 Deployment Checklist
Digest of apps/stps/deploy_n_v2/v2/claude/step_0.md so the team can deploy the preview quickly.
Scope
- Goal: Ship a working preview (teacher/student review) with access control.
- Keep: Signals, Resources, Collections/Weeks, Sessions (basic), Discussions, Timeline, Calendar, Dashboard.
- Hide/remove: Workflow/Pipeline, Materials Manager, Todos, Ideas, any AI features (for now).
Steps
-
Navigation cleanup
- Hide unfinished routes.
- Add a
FeatureGatecomponent so blocked URLs show “not available” even if someone navigates manually.
-
Temporary auth guard
- Simple password prompt in
_app.tsx(Phase 0 only). - Use sessionStorage to avoid repeated prompts; replace with Supabase Auth + middleware in Phase 1.
- Simple password prompt in
-
Environment variables (
.env.production)NEXT_PUBLIC_APP_NAME="STPS Learning Platform" NEXT_PUBLIC_USE_CONVEX=true NEXT_PUBLIC_USE_SUPABASE=true NEXT_PUBLIC_ACCESS_PASSWORD="stps2024" # change for actual deploy SUPABASE_URL="" SUPABASE_ANON_KEY="" CONVEX_URL="" -
Build scripts (
apps/stps/package.json){ "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "export": "next export" } } -
Vercel deployment
- Use Next.js
next build / next start. - Configure env vars in Vercel dashboard.
- Keep current router (no Pages/App Router refactor during Phase 0).
- Use Next.js
Use this checklist when you’re ready to flip on the preview; Phase 1 work (feature flags, universal blocks, session enhancements) lives in claude-overview.md.