Fixed turnstile
This commit is contained in:
@@ -225,6 +225,22 @@ export const ipalKit = (options: IpalOptions): Plugin => {
|
||||
|
||||
config.endpoints = [...(config.endpoints ?? []), testEmailEndpoint]
|
||||
|
||||
// --- integration alerts on the dashboard (Turnstile status, …) ---
|
||||
// Renders nothing while everything works; never throws.
|
||||
config.admin = {
|
||||
...(config.admin ?? {}),
|
||||
components: {
|
||||
...(config.admin?.components ?? {}),
|
||||
beforeDashboard: [
|
||||
...(config.admin?.components?.beforeDashboard ?? []),
|
||||
{
|
||||
path: '@intecion/ipal-kit/admin#IntegrationAlerts',
|
||||
serverProps: { adminRoute: options.adminRoute ?? '/admin' },
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
// --- hooks: onInit ---
|
||||
const incomingOnInit = config.onInit
|
||||
config.onInit = async (payload) => {
|
||||
|
||||
Reference in New Issue
Block a user