1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 07:11:47 +09:00

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