mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
👷 ci: add docs revalidation workflow and migration improvements (#11823)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user