Update index.ts

refs: 67dacb77257295ad78a0bf82ffb9b7fa7e616e89
This commit is contained in:
Acid Chicken (硫酸鶏) 2019-01-23 16:53:07 +09:00 committed by GitHub
parent f8f1bd7b57
commit 9054e6b4a2

View file

@ -26,7 +26,7 @@ import User from '../models/user';
const app = new Koa();
app.proxy = true;
if (process.env.NODE_ENV != 'production' && process.env.NODE_ENV != 'test') {
if (!['production', 'test'].includes(process.env.NODE_ENV)) {
// Logger
app.use(logger());