Custom
Use a custom plugin when the built-in providers do not match your runtime, storage, delivery, or routing requirements.
Custom plugins are configured in oberon/adapter.ts like any other plugin:
oberon/adapter.ts
import { initOberon } from "@oberoncms/core/adapter"
import { authPlugin } from "@oberoncms/core/auth"
import { plugin as developmentPlugin } from "@oberoncms/plugin-development"
import { plugin as myPlugin } from "./my-plugin"
import { config } from "./config"
export const { adapter, handler } = initOberon({
config,
plugins: [developmentPlugin, myPlugin, authPlugin],
})This section covers:
- the
OberonPluginreturn shape - the full
OberonPluginAdaptersurface grouped by its constituent parts - custom route handlers via
OberonHandler - the
OberonAdapterpassed into each handler factory
Use Plugin Shape first, then move to Adapter Hooks or Handler Hooks depending on what your plugin needs to add.
Last updated on