Register a custom config section for consumer use.
Must be called before config initialization (i.e., before the first call to getFrameworkConfig()). Registered sections:
getFrameworkConfig()
getAppConfig(name)
Section name as it appears in the config file (e.g., 'myapp')
Zod schema to validate the section data
If the section name is reserved, already registered, or config has already been initialized
registerConfigSection('myapp', z.object({ url: z.string().url(), api_key: z.string().optional(),})); Copy
registerConfigSection('myapp', z.object({ url: z.string().url(), api_key: z.string().optional(),}));
Register a custom config section for consumer use.
Must be called before config initialization (i.e., before the first call to
getFrameworkConfig()). Registered sections:getAppConfig(name)