Update index.ts

refs: 67dacb7725
This commit is contained in:
Acid Chicken (硫酸鶏) 2019-01-23 16:53:07 +09:00 committed by GitHub
parent 67dacb7725
commit 912ee60781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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());