objectenvy / defaultNonNestingPrefixes
Variable: defaultNonNestingPrefixes
ts
const defaultNonNestingPrefixes: string[];Defined in: objectEnvy.ts:317
Prefix segments that are never treated as nesting roots regardless of how many env vars share them.
Remarks
When two or more environment variables share a first segment, objectify() normally nests them under that segment. Segments in this list are excluded from that heuristic so they always flatten: MAX_CONNECTIONS + MAX_TIMEOUT → { maxConnections, maxTimeout }, never { max: { connections, timeout } }.
Extend without repeating the defaults:
ts
import { objectify, defaultNonNestingPrefixes } from 'objectenvy';
objectify({ nonNestingPrefixes: [...defaultNonNestingPrefixes, 'lsp', 'ws'] });