Skills Development Admin Environment Config Abstractions

Admin Environment Config Abstractions

v20260825
webiny-admin-env-config-catalog
This module provides essential abstractions for managing and accessing environment configurations within an administrative panel. It offers two primary tools: the direct `EnvConfig` type for explicit imports and a `useEnvConfig` hook that retrieves the configuration instance via Dependency Injection (DI). This ensures that environment settings are accessed safely and consistently in both components and custom hooks.
Get Skill
109 downloads
Overview

admin/env-config

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";

Abstractions


Name: EnvConfig Import: import { EnvConfig } from "webiny/admin/env-config" Source: @webiny/app/features/envConfig/index.ts


Name: useEnvConfig Import: import { useEnvConfig } from "webiny/admin/env-config" Source: @webiny/app/presentation/envConfig/useEnvConfig.ts Description: Returns the EnvConfig instance from DI. Useful when you want to access EnvConfig inside components and hooks.


Info
Category Development
Name webiny-admin-env-config-catalog
Version v20260825
Size 758B
Updated At 2026-09-06
Language