feat: add dynamic open graph metadata for enterprise whitelabeling

This commit is contained in:
Yash Kumar
2026-09-04 20:56:23 +05:30
parent 7fb02abb3e
commit b5c3d8660e
8 changed files with 9223 additions and 36 deletions
@@ -86,8 +86,8 @@ export const webServerSettings = pgTable("webServerSettings", {
docsUrl: string | null;
errorPageTitle: string | null;
errorPageDescription: string | null;
metaTitle: string | null;
footerText: string | null;
ogImageUrl: string | null;
}>()
.default({
appName: null,
@@ -100,8 +100,8 @@ export const webServerSettings = pgTable("webServerSettings", {
docsUrl: null,
errorPageTitle: null,
errorPageDescription: null,
metaTitle: null,
footerText: null,
ogImageUrl: null,
}),
// Deployment Configuration (self-hosted only)
remoteServersOnly: boolean("remoteServersOnly").notNull().default(false),
@@ -223,8 +223,8 @@ export const whitelabelingConfigSchema = z.object({
docsUrl: safeUrl,
errorPageTitle: z.string().nullable(),
errorPageDescription: z.string().nullable(),
metaTitle: z.string().nullable(),
footerText: z.string().nullable(),
ogImageUrl: safeUrl,
});
export const apiUpdateWhitelabeling = z.object({
@@ -10,7 +10,7 @@ export interface PublicWhitelabelingConfig {
loginLogoUrl: string | null;
faviconUrl: string | null;
customCss: string | null;
metaTitle: string | null;
ogImageUrl: string | null;
errorPageTitle: string | null;
errorPageDescription: string | null;
footerText: string | null;
@@ -50,7 +50,7 @@ export const getPublicWhitelabelingConfig =
loginLogoUrl: config.loginLogoUrl,
faviconUrl: config.faviconUrl,
customCss: config.customCss,
metaTitle: config.metaTitle,
ogImageUrl: config.ogImageUrl,
errorPageTitle: config.errorPageTitle,
errorPageDescription: config.errorPageDescription,
footerText: config.footerText,