Skip to content
Discussion options

You must be logged in to vote

There isn't built-in rotation today — the hobby cap is a hard ceiling, not an LRU eviction. You can build the eviction yourself with the CLI + a small GitHub Action, and it takes about 20 lines of workflow YAML.

The mechanic

Every preview deploy in Trigger.dev has a branch slug attached to it (matching your PR branch name). You can list and delete previews with the CLI:

# list previews
npx trigger.dev@latest deploy list --env preview --project $TRIGGER_PROJECT

# delete a specific preview
npx trigger.dev@latest deploy delete --env preview --branch feature/foo --project $TRIGGER_PROJECT

So the eviction pattern is: when a PR is closed (merged or closed unmerged), delete the preview deploy a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Yuripetusko
Comment options

Answer selected by Yuripetusko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants