Skip to content

Commit

Permalink
Update is-heroku to ensure cypress compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed May 6, 2023
1 parent aea1d1e commit 3a9a668
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/is-heroku.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// from https://github.com/sindresorhus/is-heroku/tree/main MIT Licensed
// inlined to avoid import problems in cypress

import process from 'process'

const isHeroku = 'HEROKU' in process.env || ('DYNO' in process.env && process.env.HOME === '/app')

export default () => isHeroku
export default () => 'HEROKU' in process.env || ('DYNO' in process.env && process.env.HOME === '/app')

0 comments on commit 3a9a668

Please sign in to comment.