You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Cloudflare Email Sending requires the `from` address to use an onboarded domain. Configure the sender domain in [Cloudflare Email Service domains](https://developers.cloudflare.com/email-service/configuration/domains/) before deploying real emails.
292
+
291
293
The `baseURL` is derived per-request in Hono middleware via `new URL(c.req.url).origin`. On Cloudflare Workers, `request.url` reflects the actual URL the client connected to — Cloudflare's edge routes requests to your worker based on DNS and [route configuration](https://developers.cloudflare.com/workers/configuration/routing/routes/), not the HTTP `Host` header alone. Alternatively, you can set the `BETTER_AUTH_URL` environment variable and omit the `baseURL` parameter.
292
294
293
295
**For OpenNext.js with complex async requirements:**
Copy file name to clipboardExpand all lines: cli/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ The migrate command automatically detects your database configuration from `wran
92
92
93
93
**R2 Integration**: Enables file upload and management capabilities. See [R2 setup guide](../docs/r2.md) for detailed configuration and usage.
94
94
95
-
**Email Integration**: Adds a Cloudflare Email Sending binding and wires Better Auth verification and password reset callbacks. The sender address must use a domain configured in Cloudflare Email Service.
95
+
**Email Integration**: Adds a Cloudflare Email Sending binding and wires Better Auth verification and password reset callbacks. The sender address must use a domain configured in [Cloudflare Email Service](https://developers.cloudflare.com/email-service/configuration/domains/).
|`binding`|`SendEmail`| Required | Cloudflare Email Sending binding from `wrangler.toml`. |
212
+
|`from`|`string \| EmailAddress`| Required | Default sender address. The domain must be onboarded in [Cloudflare Email Service](https://developers.cloudflare.com/email-service/configuration/domains/). |
At least one of `text` or `html` is required. Cloudflare Email Service requires the `from` domain to be configured for Email Sending.
239
+
At least one of `text` or `html` is required. Cloudflare Email Service requires the `from` domain to be [configured for Email Sending](https://developers.cloudflare.com/email-service/configuration/domains/).
0 commit comments