send environment state to client

v1.18.x
psychobunny 11 years ago
parent 303a32dce6
commit 68105c6289

@ -50,6 +50,7 @@ var path = require('path'),
config.postsPerPage = meta.config.postsPerPage || 20;
config.maximumFileSize = meta.config.maximumFileSize;
config.defaultLang = meta.config.defaultLang || 'en';
config.environment = process.env.NODE_ENV
res.json(200, config);
});

Loading…
Cancel
Save