Listoca

FAQ

Answers to the questions that come up while setting up and building.

Setup

supabase start fails or hangs

Docker must be running with enough memory (4 GB or more). bun run supabase:stop, then bun run supabase:start again. Ports 3041–3044 must be free.

The app shows "Offline" although the stack runs

PowerSync must run too: bun run sync:start, then bun run sync:logs should show the replication. After supabase:reset it needs a restart; the script does that. On a physical phone, EXPO_PUBLIC_SUPABASE_URL and EXPO_PUBLIC_POWERSYNC_URL need your computer's address, not 127.0.0.1.

I don't receive emails

Locally every email lands in Mailpit at http://localhost:3044, sent within a minute (send-queued-email on pg_cron); auth emails right away through the send-email hook.

In production, look for the email in Resend's Emails log. If it isn't there, the row in email_outbox has Resend's answer in last_error; an unverified domain or a MAIL_FROM on another domain is the usual one (Emails).

The native app doesn't start in Expo Go

It needs a development build: PowerSync's SQLite and the sign-in modules are native code. bun run ios (or bun run android) from the repo root.

Development

TypeScript doesn't know a new column or table

Run bun run db:types after a migration; it regenerates packages/supabase/src/database.gen.ts.

A write disappears again after a moment

The server refused it: see Settings → Sync → refused changes, and the debugging-sync skill. Usually row level security (42501) or a limit (23514).

How do I add a language?

Copy a locale folder in packages/i18n/translations, translate it, add the locale to packages/i18n/src/config.ts, then run bun run i18n:generate.

How do I make myself an admin?

insert into public.user_roles (user_id, role)
select id, 'admin' from auth.users where email = 'you@example.com';

Sign in again to get a token with the new role. The demo account admin@example.com already is one.

How do I turn on payments?

Create the RevenueCat project, entitlements and offering, and put the keys in the env files. The Payments page and the add-or-change-a-payment-plan skill have the steps; the Test Store works without any store setup.

Docs

My new page doesn't show up in the sidebar

Add it to the meta.json of its folder in apps/docs/content/docs.

On this page