export const getPublicHost = (type = ''): string => {
    const local = 'http://localhost:3005/'; // replace wtih env vars for different envs
    // const ngrok = process.env.NEXT_PUBLIC_HOSTIP ? `https://${process.env.NEXT_PUBLIC_HOSTIP}/` : 'https://96d7-46-217-20-55.ngrok-free.app'; // replace wtih env vars for different envs
    const ngrok = 'https://62.171.144.4:3005';
    const useNgrok = true;
    console.log('nesxt public host', process.env.NEXT_PUBLIC_HOSTIP, 'ngrok', ngrok);
    if (type === '') {
        return useNgrok ? `${ngrok}/browse/` : `${local}/browse/`; // replace wtih env vars for different envs
    }
    if (type === 'basePath') {
        return useNgrok ? ngrok : local; // replace wtih env vars for different envs
    }
    return local;
}
