技能 编程开发 管理后台环境配置抽象

管理后台环境配置抽象

v20260825
webiny-admin-env-config-catalog
该模块提供管理后台环境配置的两种核心抽象。它包含直接导入的`EnvConfig`类型,以及一个基于依赖注入(DI)的`useEnvConfig` Hook。使用这些工具可以确保在组件或自定义Hook中安全、一致地访问和使用环境配置,提升代码的健壮性和可维护性。
获取技能
109 次下载
概览

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.


信息
Category 编程开发
Name webiny-admin-env-config-catalog
版本 v20260825
大小 758B
更新时间 2026-09-06
语言