import { getEnv } from '../../read-env-config';
import axios from 'axios';
export default async function PHXGetEnvPublicV3() {
    const urlApiGateway = getEnv('NEXT_PUBLIC_API_GATEWAY', process.env.NEXT_PUBLIC_API_GATEWAY);
    try {
        const response = await axios.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