The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: update email restriction warning (#29415)
Stojan Dimitrovski8b965da9da65
diff --git a/apps/studio/components/interfaces/Auth/EmailRateLimitsAlert/EmailRateLimitsAlert.tsx b/apps/studio/components/interfaces/Auth/EmailRateLimitsAlert/EmailRateLimitsAlert.tsxindex 7dcce7d75b4..843ce6f9e74 100644--- a/apps/studio/components/interfaces/Auth/EmailRateLimitsAlert/EmailRateLimitsAlert.tsx+++ b/apps/studio/components/interfaces/Auth/EmailRateLimitsAlert/EmailRateLimitsAlert.tsx@@ -5,11 +5,12 @@ import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, WarningIcoexport function EmailRateLimitsAlert() {const { ref: projectRef } = useParams()+ const after20240926 = Date.now() >= new Date('20240926T00:00:00Z').getTime()return (<Alert_Shadcn_ variant="warning"><WarningIcon />- <AlertTitle_Shadcn_>Email rate-limits and template changes</AlertTitle_Shadcn_>+ <AlertTitle_Shadcn_>Email rate-limits and restrictions</AlertTitle_Shadcn_><AlertDescription_Shadcn_>You're using the built-in email service. The service has rate limits and it's not meant tobe used for production apps. Check the{' '}@@ -20,22 +21,23 @@ export function EmailRateLimitsAlert() {>documentation</a>{' '}- for an up-to-date information on the current rate limits. Please use a{' '}+ for an up-to-date information on the current rate limits.{' '}<LinkclassName="underline"target="_blank"href={`/project/${projectRef}/settings/auth#auth-config-smtp-form`}>- custom SMTP server+ Set up a custom SMTP server now.</Link>- .<br /></AlertDescription_Shadcn_><AlertDescription_Shadcn_ className="mt-2">- <strong>- You will not be able to modify the email templates unless you've set up a custom SMTP- server or Send Email Hook server, except if you had changed it before this restriction- went into effect.- </strong>+ {after20240926+ ? 'To fight abuse, Auth email messages are restricted '+ : 'On 26th September: To fight abuse, Auth email messages will be restricted '}+ to your project's organization members. For example, if your organization has 3 members with+ addresses: <code>[email protected]</code>, <code>[email protected]</code> and{' '}+ <code>[email protected]</code>, messages will be{' '}+ <strong>sent to those addresses only.</strong> Set up custom SMTP to send to any user.</AlertDescription_Shadcn_></Alert_Shadcn_>)