Development plugin
The plugin provides a local SQLite database and logs sign-in codes instead of sending email.
Setup
Install the plugin:
npm install @oberoncms/plugin-developmentImport it in oberon/config.ts:
import { plugin as developmentPlugin } from "@oberoncms/plugin-development"Put it first in the plugin list. Keep your production database and send plugins in that list. See Configuration for the complete setup.
Feature flags
Use these variables to select development behavior:
USE_DEVELOPMENT_DATABASE=true
USE_DEVELOPMENT_SEND=trueEach flag accepts true or false. Without an explicit value, development behavior is enabled
outside CI when NODE_ENV is unset or development. The plugin is disabled when both features are
off.
Set both flags to false in production. Generated apps explicitly set them to true in
.env.local, including when you build locally. See Deployment before you build
for production.
Last updated on