Skip to content

Commit c6811e1

Browse files
committed
change event env scripts
1 parent 1c37e15 commit c6811e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/template/mainPages.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require('dotenv').config()
55
class main {
66
constructor() {
77
// Write your constructor here, if you need
8-
this.env = process.argv[process.argv.length - 1];
8+
this.env = process.env.npm_lifecycle_event
99
}
1010

1111
// This function is named `mainService` which contains switch statements that return different Chai request urls based on the environment specified

0 commit comments

Comments
 (0)