Turso (sqlite)
A plugin providing a database adapter using Turso (opens in a new tab).
Installation
npm install @oberoncms/plugin-turso
oberon/adapter.ts
import { plugin as databasePlugin } from "@oberoncms/plugin-turso"
export const adapter = initAdapter([
developmentPlugin,
databasePlugin,
/* ...other plugins */
])
Configuration
By default the Turso plugin will automatically use Turso for production builds and fall back to a development database.
Environment Variables
To use Turso, you need to create a Turso (opens in a new tab) account and set your URL and API environment variables:
TURSO_URL=<libsql://your-database-name.turso.io>
TURSO_TOKEN=<your-api-key>