enabled: false keeps the plugin's schema, drops only its behaviour
Returning the incoming config dropped the plugin's collections and globals,
so a Postgres migration would drop their tables. Now collections, globals
and fields stay; endpoints, onInit and admin components are left out.
Also: ipalKit({ forms: { consentFieldName } }) is stored in config.custom.ipal.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a87742621a
commit
38c1d9215e
+14
-10
@@ -62,7 +62,11 @@ export type IpalOptions = {
|
||||
*/
|
||||
content?: ContentOption
|
||||
|
||||
/** Disable the plugin without uninstalling (keeps DB schema intact) */
|
||||
/**
|
||||
* `false` = plugin off without uninstalling: its collections, globals and
|
||||
* fields stay (DB schema and migrations unchanged), but it adds no endpoints,
|
||||
* onInit work or admin components.
|
||||
*/
|
||||
enabled?: boolean
|
||||
|
||||
/**
|
||||
@@ -71,6 +75,15 @@ export type IpalOptions = {
|
||||
*/
|
||||
forms?: FormsOption
|
||||
|
||||
/**
|
||||
* Change any of the plugin's globals (site-settings, site-integrations,
|
||||
* cookie-settings, notifications): an object merges over the plugin's
|
||||
* (`access` / `admin` / `hooks` key by key, your keys win), a function gets
|
||||
* the global and returns the one to use. E.g. let any logged-in user edit
|
||||
* Notifications: `{ notifications: { access: { update: authenticated } } }`.
|
||||
*/
|
||||
globalOverrides?: GlobalOverrides
|
||||
|
||||
i18n: I18nConfig
|
||||
|
||||
/**
|
||||
@@ -90,15 +103,6 @@ export type IpalOptions = {
|
||||
*/
|
||||
pages?: PagesOption
|
||||
|
||||
/**
|
||||
* Change any of the plugin's globals (site-settings, site-integrations,
|
||||
* cookie-settings, notifications): an object merges over the plugin's
|
||||
* (`access` / `admin` / `hooks` key by key, your keys win), a function gets
|
||||
* the global and returns the one to use. E.g. let any logged-in user edit
|
||||
* Notifications: `{ notifications: { access: { update: authenticated } } }`.
|
||||
*/
|
||||
globalOverrides?: GlobalOverrides
|
||||
|
||||
/**
|
||||
* next/cache `revalidatePath`, INJECTED (the plugin never imports next/cache).
|
||||
* When given, saving any of the plugin's globals (Site Settings, Site
|
||||
|
||||
Reference in New Issue
Block a user