Skip to main content

createRuntimeSecretsFetcher

@lowcode/runtime-host


Function: createRuntimeSecretsFetcher()

createRuntimeSecretsFetcher(options): (projectId) => Promise<Record<string, string>>

Defined in: apps/runtime-host/src/api/runtimeSecrets.ts:19

Создаёт fetcher секретов с кэшированием по TTL.

Используется runtime-host в preview режиме, чтобы не дергать API на каждый вызов.

Parameters

options

RuntimeSecretsFetcherOptions

Returns

(projectId): Promise<Record<string, string>>

Parameters

projectId

string

Returns

Promise<Record<string, string>>