Skip to content

Commit 7586ad5

Browse files
committed
fix: Fix dev server in production mode message
1 parent 89383dc commit 7586ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-server-core/core/DevServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DevServer {
2727
const apiUrl = process.env.CUBEJS_API_URL || `http://localhost:${port}`;
2828
const jwt = require('jsonwebtoken');
2929
const cubejsToken = jwt.sign({}, this.cubejsServer.apiSecret, { expiresIn: '1d' });
30-
if (process.NODE_ENV !== 'production') {
30+
if (process.env.NODE_ENV !== 'production') {
3131
console.log(`🔓 Authentication checks are disabled in developer mode. Please use NODE_ENV=production to enable it.`);
3232
} else {
3333
console.log(`🔒 Your temporary cube.js token: ${cubejsToken}`);

0 commit comments

Comments
 (0)