Skip to content

Commit 82d41cd

Browse files
authored
feat: Support Heroku env vars when infering release name (#517)
1 parent e1d8f40 commit 82d41cd

File tree

1 file changed

+4
-0
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+4
-0
lines changed

Diff for: packages/bundler-plugin-core/src/utils.ts

+4
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ export function determineReleaseName(): string | undefined {
233233
process.env["ZEIT_BITBUCKET_COMMIT_SHA"] ||
234234
// Flightcontrol - https://www.flightcontrol.dev/docs/guides/flightcontrol/environment-variables#built-in-environment-variables
235235
process.env["FC_GIT_COMMIT_SHA"] ||
236+
// Heroku #1 https://devcenter.heroku.com/changelog-items/630
237+
process.env["SOURCE_VERSION"] ||
238+
// Heroku #2 https://docs.sentry.io/product/integrations/deployment/heroku/#configure-releases
239+
process.env["HEROKU_SLUG_COMMIT"] ||
236240
gitRevision()
237241
);
238242
}

0 commit comments

Comments
 (0)