UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

29 lines (28 loc) 1.24 kB
import { Config } from "../../types/config.mjs"; import { AdapterRuntimeContext, EnvironmentVariables, LucidConfigDefinition, RuntimeAdapter } from "../runtime/types.mjs"; import resolveConfigDefinition from "./resolve-config-definition.mjs"; import { ZodType } from "zod"; //#region src/libs/config/load-config-file.d.ts type LoadConfigResult = { configPath: string; /** Local source modules imported by the config when dependency collection is enabled. */ configDependencies: string[]; projectRoot: string; runtimeContext: AdapterRuntimeContext; config: Config; adapter: RuntimeAdapter; envSchema?: ZodType; env: EnvironmentVariables | undefined; definition: LucidConfigDefinition; }; declare const loadConfigFile: (props?: { path?: string; silent?: boolean; configureLucidPath?: string; /** Collects local config imports for development watchers. */ collectConfigDependencies?: boolean; prepareRuntime?: boolean; validateEnvSchema?: boolean; processConfigOptions?: Parameters<typeof resolveConfigDefinition>[0]["processConfigOptions"]; }) => Promise<LoadConfigResult>; //#endregion export { LoadConfigResult, loadConfigFile as default, loadConfigFile }; //# sourceMappingURL=load-config-file.d.mts.map