export { sendEmail } from '../modules/email/index.js' export type { SendEmailArgs, SendEmailResult } from '../modules/email/index.js' export { createSubmitAction, splitFormFiles } from '../modules/forms/createSubmitAction.js' export type { SubmitActionResult } from '../modules/forms/createSubmitAction.js' export { submitForm } from '../modules/forms/index.js' export type { SubmitFormArgs, SubmitFormResult } from '../modules/forms/index.js' export { passSubmitGates, passTurnstile, resolveTurnstileOnConfigError, TURNSTILE_ON_CONFIG_ERROR_DEFAULT } from '../modules/forms/submitForm.js' export type { TurnstileFormKind, TurnstileOnConfigError, TurnstileOnConfigErrorOption } from '../modules/forms/submitForm.js' /** * Entry point: ipal-kit/server * * Server-only runtime functions — these import 'server-only' (Turnstile secret, * SMTP password, nodemailer). Kept OUT of the main entry so that loading the * Payload config or running `payload generate:importmap` (both Node scripts, * no bundler) never pulls in 'server-only', which throws outside a bundled * server context. * * Import these only from Server Actions, route handlers, or server components — * never from the Payload config or client code. */ export { checkTurnstile, verifyTurnstile } from '../modules/turnstile/index.js' export type { TurnstileCheck, TurnstileOutcome } from '../modules/turnstile/index.js'