File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -201,25 +201,25 @@ export default {
201
201
isZeitNow () {
202
202
return Boolean (process .env .ZEIT_NOW )
203
203
},
204
+ branchName () {
205
+ return this .isZeitNow ? process .env .ZEIT_BRANCH || ' ' : ' '
206
+ },
204
207
isDev () {
205
208
// In our case, `production` is the dev branch preview (Netlify)
206
209
return (
207
210
(this .isNetlify && process .env .NETLIFY_CONTEXT === ' production' ) ||
208
- (this .isZeitNow && process . env . ZEIT_BRANCH === ' dev' )
211
+ (this .isZeitNow && this . branchName === ' dev' )
209
212
)
210
213
},
211
214
isPR () {
212
215
return (
213
216
(this .isNetlify && process .env .PULL_REQUEST && process .env .REVIEW_ID ) ||
214
- (this .isZeitNow && ! this .isDev && ! process . env . ZEIT_BRANCH !== ' master' )
217
+ (this .isZeitNow && ! this .isDev && this . branchName !== ' master' )
215
218
)
216
219
},
217
220
prId () {
218
221
return this .isPR ? process .env .REVIEW_ID : ' '
219
222
},
220
- branchName () {
221
- return this .isZeitNow ? process .env .ZEIT_BRANCH || ' ' : ' '
222
- },
223
223
dropdownText () {
224
224
if (this .isPR ) {
225
225
return this .prId ? ` Pull #${ this .prId } ` : ' Pull Request'
You can’t perform that action at this time.
0 commit comments