diff --git a/.env.example b/.env.example index 1e8f58b..5fb7d49 100644 --- a/.env.example +++ b/.env.example @@ -16,6 +16,12 @@ SELF_HOSTED=true # who want to be notified of signups set this to their own address. # ADMIN_NOTIFY_EMAIL=you@example.com +# Marks THIS deployment as the hosted (screentinker.com) instance. Gates the +# daily activation-nudge sweep (the T+3 "haven't paired a screen yet?" email). +# Leave UNSET on self-hosted instances so a daily bulk sweep never emails your +# user base with our onboarding mail. Only the hosted instance sets this true. +# HOSTED_INSTANCE=true + # --- Outbound email (Microsoft Graph, client-credentials flow) --- # Required for ANY email (welcome, offline alerts, admin notify) to actually # send. Leave blank and the app logs "[EMAIL] not configured" instead of sending. diff --git a/server/db/database.js b/server/db/database.js index 902da80..4247e09 100644 --- a/server/db/database.js +++ b/server/db/database.js @@ -153,6 +153,15 @@ const migrations = [ // sent at