Skip to content

Node.js based forum software built for the modern web

send environment state to client

psychobunny68105c628923
diff --git a/src/routes/api.js b/src/routes/api.js
index 32c38363f7..571f2c0eb9 100644
--- a/src/routes/api.js
+++ b/src/routes/api.js
@@ -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);
});