A Replicache sample using Next.js/serverless/Supabase.
Also demonstrates:
- Global Version Strategy
- Shared Mutators
- Poke via Supabase realtime notifications
Running live at https://replicache-todo-nextjs.vercel.app/
- Create a new project at supabase.com. Take note of the database password when you setup.
- Set the following environment variables:
SUPABASE_DATABASE_PASSWORD
: The database password you created above.NEXT_PUBLIC_SUPABASE_URL
: The "project URL" from the supabase project's dashboard. Looks likehttps://<id>.supabase.co
, where `id` is the project's unique ID.NEXT_PUBLIC_SUPABASE_ANON_KEY
: The "API Key" from the supabase project. Accessible on project dashboard.
npm run dev