Skills Development Environment Configuration Abstraction Layer

Environment Configuration Abstraction Layer

v20260424
webiny-admin-env-config-catalog
This module provides essential abstractions for managing and accessing environment configurations within the admin panel. It introduces `EnvConfig` (for static type/instance access) and `useEnvConfig` (a hook for component usage). It ensures that environment-specific settings (such as API endpoints or keys) are managed centrally, improving code modularity and maintainability across different deployment environments.
Get Skill
297 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 v20260424
Size 778B
Updated At 2026-04-28
Language