Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
162 views

I’m unit‑testing a TypeScript/Node back‑end. When my test fails, Jest’s stack‑trace points to the wrong line in the original source (off by a few lines). I suspect source‑maps are broken but can’t see ...
Alejandro Baranov's user avatar
1 vote
1 answer
238 views

I have trouble getting my web service up and running. I developed a full stack MERN application and have my client folder already successfully deployed. However, when I try to deploy my backend folder ...
Josua's user avatar
  • 27
1 vote
2 answers
2k views

In our Node.JS application, we have been specifying application environments (dev, qa, stage, prod, etc.) in package.json as below: "start-prod": "NODE_ENV=prod node ./bin/www", &...
Sandeep Parashar's user avatar
1 vote
1 answer
2k views

I have a NodeJS application that uses Node-Config (https://www.npmjs.com/package/config) to load application configurations. What I'm trying to do is to load secrets from Azure Keyvault to the config ...
rodneyt's user avatar
  • 142
0 votes
2 answers
2k views

https://github.com/node-config/node-config Quote from github: Install in your app diectory, and edit the default config file: $ npm install config $ mkdir config $ vi config/default.json" here ...
Lucas Knäuper's user avatar
0 votes
1 answer
2k views

I have a node.js app & have some configurations based on the environment. So decided to use https://www.npmjs.com/package/config In accordance, I created a folder named config at the root level of ...
Kgn-web's user avatar
  • 7,665
0 votes
1 answer
479 views

I am trying to integrate config package in my nx.dev typescript project. I have a config directory at root level that contains default.json { "server": { "port": 3001 } } in my ...
Nilesh Kumar's user avatar
2 votes
1 answer
4k views

I am using ESM in my node project. Added "type": "module" in package.json // index.js import config from 'config' // default.js export default { time: 123, ... ... } But ...
Kiran Mali's user avatar
0 votes
1 answer
4k views

possibly a very simple question: I need to get a configuration value from within an html block in a vue file. I have this simple config.js const env = process.env.NODE_ENV const development = { ...
jhfelectric's user avatar
1 vote
0 answers
304 views

I'm using node-config in TypeScript. I have the code like below: config/default.ts: import {deferConfig} from 'config/defer'; export default { service: { url: 'http://localhost', errorUrl: ...
Hans's user avatar
  • 140
0 votes
0 answers
71 views

I am using config module from npm with JS or TS. let's imagine I have the following default.json: { "database": { "username": "admin", "password": &...
zmii's user avatar
  • 4,349
5 votes
1 answer
5k views

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 = { ...
AngularDebutant's user avatar
0 votes
1 answer
310 views

Comparatively new to JS and node, Requirement: Need to set the environment variables after reading it from a secure store before the config module is loaded. Details: We have an ask where we need to ...
RookieDev's user avatar
  • 261
3 votes
2 answers
5k views

I introduce myself currently for the first time in jest and nodejs. I am facing the problem that I have to mock two different values from the nodejs config. jest.mock('config') mockConfigTtl = require(...
nano_nano's user avatar
  • 12.6k
1 vote
1 answer
457 views

I am trying to test my config files by validating them, nothing fancy, a schema, a list of envs, iterate over it, load the config and validate the variable against the schema. Problem is, to do that, ...
DrakaSAN's user avatar
  • 7,946

15 30 50 per page