-
Notifications
You must be signed in to change notification settings - Fork 2
Document all environment variables and add a .env.example #54
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:docsdocsdocspriority:mediumMedium priorityMedium 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:docsdocsdocspriority:mediumMedium priorityMedium prioritystack:expressstack:expressstack:expressstack:nodejsNode.jsNode.jsstack:typescriptTypeScriptTypeScripttype:docsDocumentationDocumentation
Type
Fields
Give feedbackNo fields configured for Feature.
Document environment variables and provide a .env.example
Description
src/index.tsreadsPORT,CORS_ALLOWED_ORIGINS, andNODE_ENVfrom the environment, and the.gitignorealready excludes.env/.env.*— but there is no documentation of these variables and no example file. New contributors must read the source to learn how to configure the app. This issue documents configuration and adds a checked-in example.Requirements and context
Agentpay-Org/Agentpay-backendonly..env.example(safe to commit) listing every env var the code reads, with defaults and inline comments.README.mdmapping each variable to its effect (e.g.CORS_ALLOWED_ORIGINSis a comma-separated allowlist, default same-origin only)..env.exampleis not matched by the.env.*ignore rule (use an explicit unignore if needed).Suggested execution
git checkout -b docs/docs-24-env-vars.env.example.README.md..gitignorestill ignores real.env.Test and commit
npm run buildandnpm testto confirm nothing breaks.process.env.*read insrc/index.ts.Example commit message
docs: document environment variables and add .env.exampleGuidelines
Community & contribution rewards