Skip to content
Myr

Check CONNECT_ENV before connectEnv.name

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 943f1df · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:lib/express/server.js+4 added-1 removed
35 unmodified lines
36 // Default "home" to / 37 this.set('home', '/');3839 // Set "env" to {EXPRESS,CONNECT}_ENV40 this.set('env', process.env.EXPRESS_ENV || process.connectEnv.name);40 this.set('env',41 process.env.EXPRESS_ENV ||42 process.env.CONNECT_ENV ||43 process.connectEnv.name);4445 // Expose objects to each other46 this.use(function(req, res, next){47 req.query = {};
230 unmodified lines