Co-Authored-By: Claude Fable 5.2 <[email protected]>
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
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'
|
|
/**
|
|
* 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'
|