mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 23:57:49 +01:00
use 'combined' logger in production
This commit is contained in:
4
app.js
4
app.js
@@ -15,7 +15,9 @@ const app = express();
|
||||
app.use(bodyParser.urlencoded({ extended: false }));
|
||||
app.use(bodyParser.json());
|
||||
app.use(cors());
|
||||
app.use(morgan('dev'));
|
||||
process.env.NODE_ENV === 'production'
|
||||
? app.use(morgan('combined'))
|
||||
: app.use(morgan('dev'));
|
||||
|
||||
const passport = require('./config/passport');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user