-
Notifications
You must be signed in to change notification settings - Fork 5
Document environment variables and a sample .env file #22
Copy link
Copy link
Open
Labels
GRANTFOX OSSGrantFox open-source campaign taskGrantFox open-source campaign taskMAYBE REWARDEDMay be rewarded under the GrantFox campaignMay be rewarded under the GrantFox campaignOFFICIAL CAMPAIGNOfficial GrantFox campaign issueOfficial GrantFox campaign issuearea:config-docsconfig docsconfig docspriority:lowLow priorityLow prioritystack:expressstack:expressstack:expressstack:nodejsNode.jsNode.jsstack:typescriptTypeScriptTypeScripttype:docsDocumentationDocumentation
Metadata
Metadata
Assignees
Labels
GRANTFOX OSSGrantFox open-source campaign taskGrantFox open-source campaign taskMAYBE REWARDEDMay be rewarded under the GrantFox campaignMay be rewarded under the GrantFox campaignOFFICIAL CAMPAIGNOfficial GrantFox campaign issueOfficial GrantFox campaign issuearea:config-docsconfig docsconfig docspriority:lowLow priorityLow prioritystack:expressstack:expressstack:expressstack:nodejsNode.jsNode.jsstack:typescriptTypeScriptTypeScripttype:docsDocumentationDocumentation
Type
Fields
Give feedbackNo fields configured for Feature.
Document configuration environment variables
Description
The service reads
process.env.PORTandprocess.env.NODE_ENVinsrc/index.tsandsrc/server.ts, and upcoming work will addADMIN_TOKEN,CORS_ALLOWED_ORIGINS,TRUST_PROXY, andLOG_LEVEL. None of these are documented and there is no.env.example. This issue creates an environment reference and a sample env file.Requirements and context
StableRoute-Org/Stableroute-backendonly..env.example(create file) listing every recognized variable with a safe default and a comment.README.mddescribing each variable, its default, and its effect.PORTdefaults to 3001,NODE_ENVgates logging)..envis git-ignored (verify against.gitignore).Suggested execution
git checkout -b docs/config-docs-22-env-reference.env.example; updateREADME.md.process.envreads in the source.Test and commit
npm run buildandnpm testto confirm nothing regressed..env.exampleparses cleanly and matches documented variables.Example commit message
docs(config): document environment variables and add .env.exampleGuidelines
Community & contribution rewards