import { isDevelopment } from '@game/const/env';

const host = process.env.API_HOST!;
const isLocalHost = host.startsWith('localhost');

export const API_HOST = host;
export const API_PROTOCOL = isDevelopment || isLocalHost ? 'http' : 'https';
export const API_URL = `${API_PROTOCOL}://${API_HOST}`;
