adobe / adobe/aio-lib-core-config

two different keys set the same key in .env for the leading `AIO_` prefix (quirk)

Open
#49 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Description

For an .env file
```
AIO_RUNTIME_AUTH=foo
AIO__RUNTIME_AUTH=bar
```

Both keys are effectively the same key `runtime.auth`
This will not be apparent to the user, and may just be a documentation issue.

`AIO_RUNTIME_AUTH` is processed as `runtime.auth`
`AIO__RUNTIME_AUTH` is processed as `.runtime.auth` (note the leading period). The leading period is split out when calling `setValue`.

## Fix:
Document that any .env vars that are prefixed by `AIO_` or `AIO__` are equivalent (one or two underscores). Anything more than two will be reflected as an underscore itself.

Contributor guide

Open the contributing guide

Research direction

Start by locating the configuration documentation that explains .env variable names and the AIO_ prefix. Verify the documented examples against the described setValue behavior, then document that AIO_ and AIO__ are equivalent while additional underscores remain part of the key.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.