UNPKG

@intlayer/config

Version:

Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.

22 lines 615 B
import { logger } from "../logger.mjs"; import { loadExternalFile } from "../loadExternalFile.mjs"; const filterValidConfiguration = (configuration) => { return configuration; }; const loadConfigurationFile = (configFilePath, envVarOptions) => { try { const fileContent = loadExternalFile(configFilePath, envVarOptions); return filterValidConfiguration(fileContent); } catch (error) { logger( `Error: ${error} ${JSON.stringify(error.stack, null, 2)}`, { level: "error" } ); } }; export { loadConfigurationFile }; //# sourceMappingURL=loadConfigurationFile.mjs.map