fix(2fa): static import for @clocklimited/payload-2fa and @payload-config alias to prevent webpack runtime error

This commit is contained in:
2026-10-12 12:47:28 +02:00
parent a3938cacd9
commit 13d669b757
7 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import { getPayload } from 'payload';
async function loadBranding(settingsSlug, nameField, imageField) {
try {
// Consumer alias — resolved in the project's build, hidden from plugin tsc.
const spec = '@payload-config';
const mod = await import(spec);
// @ts-ignore
const mod = await import('@payload-config');
const payload = await getPayload({
config: mod.default
});
File diff suppressed because one or more lines are too long