👷 ci: add docs revalidation workflow and migration improvements (#11823)

This commit is contained in:
YuTengjing
2026-01-25 23:00:00 +08:00
committed by GitHub
parent 3b41009a68
commit 01644089c6
7 changed files with 88 additions and 33 deletions

View File

@@ -134,6 +134,32 @@ const DEPRECATED_CHECKS = [
'APP_URL ends with a trailing slash which causes double slashes in redirect URLs (e.g., https://example.com//). Please remove the trailing slash.',
name: 'APP_URL Trailing Slash',
},
{
docUrl: `${MIGRATION_DOC_BASE}/providers/casdoor`,
getVars: () => {
const providers = process.env['AUTH_SSO_PROVIDERS'] || '';
if (providers.includes('casdoor') && !process.env['CASDOOR_WEBHOOK_SECRET']) {
return ['CASDOOR_WEBHOOK_SECRET'];
}
return [];
},
message:
'Casdoor webhook is required for syncing user data (email, avatar, etc.) to LobeChat. Without it, users without email configured in Casdoor cannot login. Please configure CASDOOR_WEBHOOK_SECRET following the documentation.',
name: 'Casdoor Webhook',
},
{
docUrl: `${MIGRATION_DOC_BASE}/providers/logto`,
getVars: () => {
const providers = process.env['AUTH_SSO_PROVIDERS'] || '';
if (providers.includes('logto') && !process.env['LOGTO_WEBHOOK_SIGNING_KEY']) {
return ['LOGTO_WEBHOOK_SIGNING_KEY'];
}
return [];
},
message:
'Logto webhook is required for syncing user data (email, avatar, etc.) to LobeChat. Without it, users without email configured in Logto cannot login. Please configure LOGTO_WEBHOOK_SIGNING_KEY following the documentation.',
name: 'Logto Webhook',
},
{
docUrl: `${MIGRATION_DOC_BASE}/nextauth-to-betterauth`,
formatVar: (envVar) => {