node-config Questions
2
Solved
I want to load environment variables into the general config of my Express app. Locally I work with a .env file, but when deploying, I'll inject the env vars into the docker container.
So, I've go...
Popper asked 18/11, 2019 at 9:30
9
Solved
After installing node-config and @types/config:
yarn add config
yarn add --dev @types/config
And adding config as described in lorenwest/node-config:
// default.ts
export default {
server: {
...
Kneedeep asked 12/6, 2018 at 9:21
4
Solved
Receiving this warning on running a node.js app despite all testing suggesting everything fine.
I've included the below code in my app to fault find:
console.log('NODE_ENV: ' + config.util.getEnv...
Manque asked 19/2, 2019 at 15:44
3
First off it's my first time with Sequelize so be patient.
I'd like to use https://github.com/sequelize/cli
along with https://github.com/lorenwest/node-config
I want sequelize to be able to "com...
Educable asked 19/7, 2015 at 9:59
3
Solved
I am using node-config in basically all my projects and most of the time I come across the problem of parsing booleans and numbers which are set as environment variables.
E.g.
default.js
modu...
Bagehot asked 5/1, 2020 at 11:16
4
Solved
I have a problem with the node-config library while using typescript.
My config folder is as follows:
However after I run tsc and try to start my app from it's entry point (app.js) I get the fo...
Instant asked 25/9, 2019 at 9:20
3
Node-config's custom-environment-variables.json doesn't seem to be overriding values in default.json when NODE_ENV is set to 'test.' Here's an extremely simple config:
config/default.json:
{
"jw...
Calle asked 10/5, 2019 at 21:2
4
Solved
I'd like to override some values at test-time, specifically setting my retries for an http service to 1 (immediate failure, no retries). Our project uses node-config. According to the docs I can ov...
Pretension asked 22/9, 2017 at 16:59
6
I am running [email protected] and I am attempting to get settings from the environment variables using .\config\custom-environment-variables.json does not work. However, it reads from the .\c...
Provisional asked 31/5, 2018 at 7:26
1
Solved
I have the following default/config.js file
/* eslint-disable @typescript-eslint/no-var-requires */
require('dotenv').config({
path: require('find-config')('.env'),
});
module.exports = {
cronIn...
Cherenkov asked 1/6, 2021 at 9:17
1
1. Summarize the problem
We are using a configuration module (node) that allows us to set various configuration options, for example database settings or other api endpoint settings with our fireb...
Hygienic asked 12/9, 2019 at 19:10
1
© 2022 - 2024 — McMap. All rights reserved.