diff --git a/apps/webapp/app/components/integrations/VercelBuildSettings.tsx b/apps/webapp/app/components/integrations/VercelBuildSettings.tsx index 0111168ccf..fb6410507c 100644 --- a/apps/webapp/app/components/integrations/VercelBuildSettings.tsx +++ b/apps/webapp/app/components/integrations/VercelBuildSettings.tsx @@ -34,31 +34,31 @@ export function BuildSettingsFields({ <> {/* Pull env vars before build */}
-
-
+
+
- - Select which environments should pull environment variables from Vercel before each - build.{" "} - {envVarsConfigLink && ( - <> - Configure which variables to pull. - - )} - + {availableEnvSlugs.length > 1 && ( + 0 && + availableEnvSlugs.every((s) => pullEnvVarsBeforeBuild.includes(s)) + } + onCheckedChange={(checked) => { + onPullEnvVarsChange(checked ? [...availableEnvSlugs] : []); + }} + /> + )}
- {availableEnvSlugs.length > 1 && ( - 0 && - availableEnvSlugs.every((s) => pullEnvVarsBeforeBuild.includes(s)) - } - onCheckedChange={(checked) => { - onPullEnvVarsChange(checked ? [...availableEnvSlugs] : []); - }} - /> - )} + + Select which environments should pull environment variables from Vercel before each + build.{" "} + {envVarsConfigLink && ( + <> + Configure which variables to pull. + + )} +
{availableEnvSlugs.map((slug) => { @@ -90,34 +90,34 @@ export function BuildSettingsFields({ {/* Discover new env vars */}
-
-
+
+
- - Select which environments should automatically discover and create new environment - variables from Vercel during builds. - + {availableEnvSlugs.length > 1 && ( + 0 && + availableEnvSlugs.every( + (s) => discoverEnvVars.includes(s) || !pullEnvVarsBeforeBuild.includes(s) + ) && + availableEnvSlugs.some((s) => discoverEnvVars.includes(s)) + } + disabled={!availableEnvSlugs.some((s) => pullEnvVarsBeforeBuild.includes(s))} + onCheckedChange={(checked) => { + onDiscoverEnvVarsChange( + checked + ? availableEnvSlugs.filter((s) => pullEnvVarsBeforeBuild.includes(s)) + : [] + ); + }} + /> + )}
- {availableEnvSlugs.length > 1 && ( - 0 && - availableEnvSlugs.every( - (s) => discoverEnvVars.includes(s) || !pullEnvVarsBeforeBuild.includes(s) - ) && - availableEnvSlugs.some((s) => discoverEnvVars.includes(s)) - } - disabled={!availableEnvSlugs.some((s) => pullEnvVarsBeforeBuild.includes(s))} - onCheckedChange={(checked) => { - onDiscoverEnvVarsChange( - checked - ? availableEnvSlugs.filter((s) => pullEnvVarsBeforeBuild.includes(s)) - : [] - ); - }} - /> - )} + + Select which environments should automatically discover and create new environment + variables from Vercel during builds. +
{availableEnvSlugs.map((slug) => { @@ -155,13 +155,7 @@ export function BuildSettingsFields({ {/* Atomic deployments */}
-
- - - When enabled, production deployments wait for Vercel deployment to complete before - promoting the Trigger.dev deployment. - -
+
+ + When enabled, production deployments wait for Vercel deployment to complete before + promoting the Trigger.dev deployment. This will disable the "Auto-assign Custom + Production Domains" option in your Vercel project settings to perform staged + deployments.{" "} + + Learn more + + . +
); diff --git a/apps/webapp/app/components/integrations/VercelOnboardingModal.tsx b/apps/webapp/app/components/integrations/VercelOnboardingModal.tsx index f3635dbd08..6c3e0e3b4d 100644 --- a/apps/webapp/app/components/integrations/VercelOnboardingModal.tsx +++ b/apps/webapp/app/components/integrations/VercelOnboardingModal.tsx @@ -679,7 +679,7 @@ export function VercelOnboardingModal({ onClose(); } }}> - + e.preventDefault()}>
@@ -800,6 +800,20 @@ export function VercelOnboardingModal({ ))} + +

+ If you skip this step, the{" "} + TRIGGER_SECRET_KEY{" "} + will not be installed for the staging environment in Vercel. You can configure this later in + project settings. +

+
+ + + Make sure the staging branch in your Vercel project's Git settings matches the staging branch + configured in your GitHub integration. + +