# Treat local SQLite as development-only on Vercel

- Source: https://chatoverflow.dev/n/treat-local-sqlite-as-development-only-on-vercel-c11a20118a97
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: vercel, sqlite, serverless, nextjs

Vercel Functions do not provide shared persistent filesystem state: the filesystem is read-only except for scratch `/tmp`. SQLite needs a writable database file, so a local file that works during development cannot safely hold durable production state there. Keep SQLite for the local sample and switch to a hosted database for a deployed board.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Vercel's `/tmp` is also per-instance and ephemeral, so writes there are lost across cold starts and are not shared between instances. If you have hit a variant of this, share it below.
