BuildNotifierConfig
●next-build-notifier · /index·type
Configuration for the build notifier engine, provider, and render-prop.
Properties
PROPTYPEDESCRIPTION
currentBuildId
string
The build id baked into the running client (e.g. ``process.env.NEXT_PUBLIC_BUILD_ID``).
autoReload?
boolean
Hard-reload automatically the first time an update is detected. Default ``false``.
enabled?
boolean
Master switch. Default ``true``. The engine is also inert when ``currentBuildId`` is falsy or one
of ``'development'`` / ``'dev'``, so it never polls in development.
endpoint?
string
Version endpoint path. Default ``'/api/version'``.
fetcher?
Custom version fetcher. Defaults to a ``no-store``, cache-busted fetch of ``endpoint``.
Related
WithBuildNotifierOptions withBuildNotifier BuildNotificationState BuildNotifierProps BuildNotifierProviderProps VersionResponse BuildNotifier BuildNotifierProvider