fix(identity): render host-aware login dynamically
This commit is contained in:
@@ -8,6 +8,8 @@ import {
|
||||
} from "@/modules/identity/config";
|
||||
import { resolveIdentitySurface } from "@/modules/identity/host";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function LoginPage() {
|
||||
const config = readIdentityConfig(process.env);
|
||||
let provider = config.provider;
|
||||
|
||||
@@ -11,6 +11,7 @@ test("login page selects the auth provider from server-only validated config", (
|
||||
);
|
||||
|
||||
assert.doesNotMatch(page, /["']use client["']/);
|
||||
assert.match(page, /export const dynamic = "force-dynamic"/);
|
||||
assert.match(page, /readIdentityConfig\(process\.env\)/);
|
||||
assert.match(page, /isSelfHostedIdentityEnabled\(process\.env\)/);
|
||||
assert.match(page, /resolveIdentitySurface/);
|
||||
|
||||
Reference in New Issue
Block a user