From 6238b6d6b9d4f39d702c67cdf7788423ab4d546a Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Wed, 2 Nov 2022 17:50:32 -0300 Subject: [PATCH] A few last tweaks regarding UX and env vars --- .env.example | 6 +++--- app.json | 4 ++++ apps/web/pages/apps/installed/[category].tsx | 4 +++- packages/lib/Sendgrid.ts | 2 +- turbo.json | 1 + 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 84f91a5e7f..224a5f3a4a 100644 --- a/.env.example +++ b/.env.example @@ -77,7 +77,7 @@ NEXT_PUBLIC_HELPSCOUT_KEY= SEND_FEEDBACK_EMAIL= # Sengrid -# Used for email reminders in workflows +# Used for email reminders in workflows and internal sync services SENDGRID_API_KEY= SENDGRID_EMAIL= @@ -135,5 +135,5 @@ NEXT_PUBLIC_TEAM_IMPERSONATION=false # Close.com internal CRM CLOSECOM_API_KEY= -# Sendgrid internal email sender -SENDGRID_API_KEY= +# Sendgrid internal sync service +SENDGRID_SYNC_API_KEY= diff --git a/app.json b/app.json index 2ad52b916c..ba670bab19 100644 --- a/app.json +++ b/app.json @@ -50,6 +50,10 @@ "description": "Sendgrid api key. Used for email reminders in workflows", "value": "" }, + "SENDGRID_SYNC_API_KEY": { + "description": "Sendgrid internal sync service", + "value": "" + }, "SENDGRID_EMAIL": { "description": "Sendgrid email. Used for email reminders in workflows", "value": "" diff --git a/apps/web/pages/apps/installed/[category].tsx b/apps/web/pages/apps/installed/[category].tsx index f3cffac435..b5e837e368 100644 --- a/apps/web/pages/apps/installed/[category].tsx +++ b/apps/web/pages/apps/installed/[category].tsx @@ -179,7 +179,9 @@ const IntegrationsContainer = ({ variant, exclude }: IntegrationsContainerProps) })} description={t(`no_category_apps_description_${variant || "other"}`)} buttonRaw={ - } diff --git a/packages/lib/Sendgrid.ts b/packages/lib/Sendgrid.ts index c03bbdf2f8..e0ffdefcf1 100644 --- a/packages/lib/Sendgrid.ts +++ b/packages/lib/Sendgrid.ts @@ -39,7 +39,7 @@ export type SendgridNewContact = { job_id: string; }; -const environmentApiKey = process.env.SENDGRID_API_KEY || ""; +const environmentApiKey = process.env.SENDGRID_SYNC_API_KEY || ""; /** * This class to instance communicating to Sendgrid APIs requires an API Key. diff --git a/turbo.json b/turbo.json index 86387e2370..87631ad877 100644 --- a/turbo.json +++ b/turbo.json @@ -181,6 +181,7 @@ "$CI", "$CLOSECOM_API_KEY", "$SENDGRID_API_KEY", + "$SENDGRID_SYNC_API_KEY", "$SENDGRID_EMAIL", "$CRON_API_KEY", "$DAILY_API_KEY",