UNPKG

phx-react

Version:

PHX REACT

21 lines 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = PHXGetEnvPublicV3; const tslib_1 = require("tslib"); const read_env_config_1 = require("../../read-env-config"); const axios_1 = tslib_1.__importDefault(require("axios")); async function PHXGetEnvPublicV3() { const urlApiGateway = (0, read_env_config_1.getEnv)('NEXT_PUBLIC_API_GATEWAY', process.env.NEXT_PUBLIC_API_GATEWAY); try { const response = await axios_1.default.get(`${urlApiGateway}/public-setting/settings/env-public`, { headers: { 'Content-Type': 'application/json', }, }); return response.data; } catch (error) { throw new Error('Error with Axios request: ' + error.message); } } //# sourceMappingURL=getEnvPublic.js.map