Skip to Content
API Reference@ignitionai/storageSrcFunctionsFunction: parseHFConfig()

ignition-monorepo


ignition-monorepo / storage/src / parseHFConfig

Function: parseHFConfig()

parseHFConfig(env?): object

Defined in: storage/src/config.ts:20 

Read HF_TOKEN and HF_REPO_ID from environment variables and validate them. Throws a descriptive ZodError if either is missing or malformed.

Parameters

env?

Record<string, string | undefined> = process.env

Returns

object

token

token: string

repoId

repoId: string

Last updated on