Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Commit 692b826

Browse files
committed
Fix: check for string vs boolean for debug mode in app.js
1 parent 2f9fc40 commit 692b826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ import Html from './utils/Html';
1616
import createApolloClient from './utils/create-apollo-client';
1717
import manifest from './public/manifest.json';
1818

19-
env(path.join(__dirname, '..', 'env'));
19+
env(path.join(__dirname, '..', '.env'));
2020

2121
const app = express();
2222
const serverUrl = process.env.BASE_URL || 'http://localhost:1337';
2323
const apiUrl = process.env.API_URL || 'http://localhost:3000';
2424
const PORT = serverUrl.match(/\d+/g)[0];
2525
const IP = serverUrl.match(/\w+/g)[1];
2626
const graphqlUrl = `${apiUrl}graphql`;
27-
const debug = process.env.DEBUG || false;
27+
const debug = process.env.DEBUG === 'true';
2828

2929
if (debug) { app.use(morgan('combined')); }
3030
app.use(express.static(path.join(__dirname, '/public')));

0 commit comments

Comments
 (0)