fix(2fa): static import for @clocklimited/payload-2fa and @payload-config alias to prevent webpack runtime error
This commit is contained in:
+2
-2
@@ -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
|
||||
});
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user