const baseUrl: string = process.env.NEXT_PUBLIC_API_BACKEND || ''; if (!baseUrl) { throw new Error('API URL is not provided.'); } const apiUrl: string = `${baseUrl}/api`; export default apiUrl;