Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(ci): enable remote Cloudflare email binding

HoshinoSuzumiBotc1deeb58815b
diff --git a/.github/workflows/deploy-saas.yml b/.github/workflows/deploy-saas.yml
index b65c4900..12ad5b0a 100644
--- a/.github/workflows/deploy-saas.yml
+++ b/.github/workflows/deploy-saas.yml
@@ -167,7 +167,7 @@ jobs:
if (process.env.ENTRY === 'cloud' && emailFrom) {
if (!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(emailFrom)) throw new Error('Invalid platform email sender address')
const target = process.env.DEPLOY_ENVIRONMENT === 'staging' ? config.previews : config
- target.send_email = [{ name: 'EMAIL', allowed_sender_addresses: [emailFrom] }]
+ target.send_email = [{ name: 'EMAIL', remote: true, allowed_sender_addresses: [emailFrom] }]
target.vars = { ...target.vars, NUXT_PLATFORM_EMAIL_FROM: emailFrom }
if (process.env.DEPLOY_ENVIRONMENT === 'staging') delete config.send_email
}
diff --git a/packages/platform/README.md b/packages/platform/README.md
index 170d56d8..64c3388e 100644
--- a/packages/platform/README.md
+++ b/packages/platform/README.md
@@ -30,11 +30,12 @@ Cloud runtime settings are private Worker configuration:
Set the GitHub Environment variable `PLATFORM_EMAIL_FROM` to that sender address.
The workflow adds `EMAIL` only to cloud, restricts `allowed_sender_addresses` to
-this address, and sets `NUXT_PLATFORM_EMAIL_FROM`. Production uses top-level
+this address, enables `remote: true`, and sets `NUXT_PLATFORM_EMAIL_FROM`. Production uses top-level
configuration; staging uses `previews.send_email` and `previews.vars`. This keeps
runtime bindings reproducible on subsequent deployments. With no sender variable
-or binding, email sign-in stays disabled. Local Wrangler simulation must use
-`remote: false` (the default) to avoid real delivery.
+or binding, email sign-in stays disabled. The `remote: true` setting also enables real email delivery when this configuration
+is used with `wrangler dev`. Local regression tests explicitly override it with
+`remote: false` to simulate delivery.
See the [Cloudflare binding API](https://developers.cloudflare.com/email-service/api/send-emails/workers-api/).
The verified sending domain must be active; any account recipient restrictions