-
Notifications
You must be signed in to change notification settings - Fork 961
Closed
Labels
discussionThis issue is requesting comments and discussionThis issue is requesting comments and discussionwont-fixThis is not a feature or proposal that will be incorporated, or a bug that won't be addressedThis is not a feature or proposal that will be incorporated, or a bug that won't be addressed
Description
I can't seem to get debug working with dotenv. It works fine when I set the env var from outside of .env like so:
package.json
"dev": "NODE_ENV=development DEBUG=*,apicache nodemon",
npm run dev
server.js
import 'babel-polyfill';
import makeDebug from 'debug';
import dotenv from 'dotenv';
const env = dotenv.config();
console.log(process.env.DEBUG); // outputs *,apicache correctly
const debug = makeDebug('brainfm:server/index');
debug('.env', env); // Doesn't show anything
.env
DEBUG =*,apicache
exogen
Metadata
Metadata
Assignees
Labels
discussionThis issue is requesting comments and discussionThis issue is requesting comments and discussionwont-fixThis is not a feature or proposal that will be incorporated, or a bug that won't be addressedThis is not a feature or proposal that will be incorporated, or a bug that won't be addressed