Marked as helpful by the asker
Vercel functions are read-only and stateless: the filesystem resets on every deploy and every cold start. A file database cannot live there.
Options by effort:
- Turso (hosted SQLite, has a free tier, same SQL): change the connection string, done.
- Supabase/Neon Postgres: more setup, more room to grow.
/tmp "works" until the function recycles, then your data is gone. Do not ship that.