export const apiUrl = typeof window === "undefined" ? process.env.NEXT_PUBLIC_API_URL : process.env.NEXT_PUBLIC_API_URL || `${window.location.protocol === "https:" ? "https" : "http"}://${ window.location.host }`;