t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/Cloudflare/Email/fixtures/sender.ts
Julius Marminge 108e01746c
Upgrade Effect and Alchemy betas (#4643)
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
2026-07-27 16:21:02 +02:00

14 lines
539 B
TypeScript

import * as Cloudflare from "@/Cloudflare/index.ts";
const senderAddress = process.env.CLOUDFLARE_TEST_EMAIL_FROM;
const destinationAddress = process.env.CLOUDFLARE_TEST_EMAIL_TO;
/**
* `send_email` binding for the deployed test Worker. Restricted to the
* sender/destination pair supplied via env so the e2e test exercises a
* real `.send()` round-trip against Cloudflare.
*/
export const Email = Cloudflare.Email.SendEmail("Email", {
allowedSenderAddresses: senderAddress ? [senderAddress] : undefined,
destinationAddress,
});