`.env` file support issue tracker
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 122k
- Fork
- 37.3k
- Merge medio
- 4g 2h
- PR unite (30g)
- 283
Descrizione
This is a follow-up of dotenv support pr to track the development process, and answer some questions that require a general discussion for making the decision to implement them.
Todos:
- Precisely define the syntax of
.envfiles, and consider a better format not based on ini - Supporting absolute paths for .env file https://github.com/nodejs/node/pull/51425
- Should we support multiple
--env-filethrough the CLI? (cc @GeoffreyBooth) https://github.com/nodejs/node/pull/49542 - Support multi-line values https://github.com/nodejs/node/pull/51289
- Follow up after @tniessen's PR has landed to main https://github.com/nodejs/node/pull/49213
- Should we add a programmatic API? If yes, what would be the use-case? (cc @cjihrig) https://github.com/nodejs/node/pull/51476
Questions:
-
Should we merge NODE_OPTIONS if both environment variable and .env version exist? Currently, we prefer environment variable over .env configuration.(cc @ljharb) https://github.com/nodejs/node/pull/49217 - Should we throw if
.envfile does not exist? We currently follow the default behavior ofdotenvpackage and do not throw. (cc @MoLow)
Please feel free to edit this issue in case there are more questions that needs to be answered.
cc @nodejs/tsc
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Questa issue è un tracker di discussione per il supporto di .env in Node.js, con gli elementi completati collegati a pull requests anziché a un file o a un test denominato. Esamina prima le pull requests collegate a dotenv e la cronologia rimanente dell’issue; le domande elencate sono contrassegnate come risolte, quindi qui non è definita chiaramente alcuna modifica rimanente né alcun test di completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- backend, cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 15/100