Payload Adsign Plugin

Plugin Configuration

Plugin configuration options

Main Options

OptionTypeDefaultDescription
siteNamestring-Site name
domainstring-Domain
loginLoginConfig-Login page text, see below
disabledbooleanfalseDisable plugin
redirectsRedirectsConfig | false{}Redirects config or false to disable
revalidationRevalidationConfig-Cache revalidation config
lexicalReferencesLexicalReferencesConfigEnabledLexical reference tracking for block relationships
externalRelationshipSourcesExternalRelationshipSourceConfig[]-Sources that power externalRelationshipField

Login Options

OptionTypeDefaultDescription
descriptionRecord<string, string> | stringNames domainThe sentence under the welcome title. A string, or one per admin language. For a CMS that manages several websites.
adsignPlugin({
  siteName: 'Ditec',
  domain: 'ditec.no',
  login: {
    description: {
      en: 'This is the login page to manage content on the Ditec dealer websites.',
      nb: 'Dette er innloggingssiden for å administrere innholdet på Ditec-forhandlernes nettsider.',
    },
  },
});

Redirects Options

OptionTypeDefaultDescription
redirectEnabledCollectionsstring[]Auto-detectedCollections that support redirects
fieldsfunction-Add/modify redirect collection fields
redirectsOverridesPartial<CollectionConfig>{}Override redirect collection config
redeployRedeployConfig-Auto-deploy config

Redeploy Options

OptionTypeDefaultDescription
urlstring-Deploy hook URL
delayMinutesnumber10Delay before triggering

Revalidation Options

OptionTypeDescription
urlstring | string[]Revalidation endpoint(s)
secretstringSecret token
batchbooleanRequired, no default. true sends one POST per URL as { secret, tags }; false sends one POST per tag as { secret, tag } and is deprecated. See Revalidation.
mode'autoMode' | 'legacyMode'Defaults to 'autoMode'. In 'autoMode', the plugin walks config.collections / config.globals for entries whose custom.revalidate is set and attaches hooks. In 'legacyMode', source is forbidden and manual revalidateHook calls are required. Revalidation POSTs use { secret, tag } when batch: false and { secret, tags } when batch: true, in either mode.
sourcestringOptional publisher identifier. When set, every emitted tag is prefixed with ${source}_. Forbidden in legacyMode. See Revalidation.

Lexical References Options

OptionTypeDefaultDescription
enabledbooleantrueEnable lexical references tracking
fieldNamestringlexicalReferencesField name that stores reference tags
collectionsRecord<string, boolean>{}Per-collection overrides (set to false to disable)

On this page