Skip to content

feat: hide native Git-based deployments in self-hosted instances - #4841

Closed
MauryaQbit wants to merge 1 commit into
triggerdotdev:mainfrom
MauryaQbit:main
Closed

feat: hide native Git-based deployments in self-hosted instances#4841
MauryaQbit wants to merge 1 commit into
triggerdotdev:mainfrom
MauryaQbit:main

Conversation

@MauryaQbit

Copy link
Copy Markdown

Resolves #4835

- Gate the 'Use native build server' UI option on isManagedCloud
- Gate the enqueueBuild API path on isCloud() condition
- Return clear error from API when feature not available
- Add .server-changes/ file for server-only user-facing change

Resolves triggerdotdev#4835
@changeset-bot

changeset-bot Bot commented Aug 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ade89d4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Hi @MauryaQbit, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions Bot closed this Aug 30, 2026
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7150c7a3-3fb2-40c0-a07a-daf5b34e2c4f

📥 Commits

Reviewing files that changed from the base of the PR and between 9cb5028 and ade89d4.

📒 Files selected for processing (3)
  • .server-changes/hide-native-deployments-self-hosted.md
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.settings.integrations/route.tsx
  • apps/webapp/app/v3/services/deployment.server.ts

Walkthrough

The integrations settings loader now returns managed-cloud status. The native build server switch is disabled on self-hosted instances and shows CLI or GitHub Action guidance. The enqueueBuild API now rejects native builds on non-cloud instances with a native_build_not_available error. A changelog entry documents the restriction.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review


const { gitHubApp, buildSettings } = resultOrFail.value;

const { isManagedCloud } = featuresForRequest(request);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Cloud previews disable native builds

On *.triggerlabs.dev, featuresForRequest returns false while isCloud permits native builds. Managed previews therefore lose a supported build option.

Prompt for agents
Use one authoritative capability check for both the dashboard and DeploymentService. featuresForRequest only recognizes three exact request hosts, while isCloud also recognizes *.triggerlabs.dev through LOGIN_ORIGIN. Update the integrations loader and native-build gate so managed preview instances receive the same availability result, ideally based on actual build-client availability rather than two separate host lists.
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide native (Git-based) deployments in self-hosted instances

1 participant