diff --git a/server/private/lib/config.ts b/server/private/lib/config.ts index 9884fe252..75600fba6 100644 --- a/server/private/lib/config.ts +++ b/server/private/lib/config.ts @@ -97,6 +97,13 @@ export class PrivateConfig { ); } + process.env.BRANDING_HIDE_POWERED_BY = + this.rawPrivateConfig.branding?.hide_powered_by === true || + this.rawPrivateConfig.branding?.resource_auth_page + ?.hide_powered_by === true + ? "true" + : "false"; + process.env.LOGIN_PAGE_SUBTITLE_TEXT = this.rawPrivateConfig.branding?.login_page?.subtitle_text || ""; diff --git a/server/private/lib/readConfigFile.ts b/server/private/lib/readConfigFile.ts index 63ca0b068..974e8e590 100644 --- a/server/private/lib/readConfigFile.ts +++ b/server/private/lib/readConfigFile.ts @@ -141,6 +141,7 @@ export const privateConfigSchema = z ) .optional(), hide_auth_layout_footer: z.boolean().optional().default(false), + hide_powered_by: z.boolean().optional(), login_page: z .object({ subtitle_text: z.string().optional() diff --git a/src/components/OrgLoginPage.tsx b/src/components/OrgLoginPage.tsx index 26cc23814..3270b7cb4 100644 --- a/src/components/OrgLoginPage.tsx +++ b/src/components/OrgLoginPage.tsx @@ -16,6 +16,7 @@ import Link from "next/link"; import { replacePlaceholder } from "@app/lib/replacePlaceholder"; import { getTranslations } from "next-intl/server"; import { pullEnv } from "@app/lib/pullEnv"; +import { build } from "@server/build"; type OrgLoginPageProps = { loginPage: LoadLoginPageResponse | undefined; @@ -52,19 +53,21 @@ export default async function OrgLoginPage({ const t = await getTranslations(); return (