main
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-04-12 15:15:43 +02:00
parent 75de91848e
commit 50b2c0d8af
5 changed files with 11 additions and 8 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
import { createApiClient } from './create-api-client';
const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000/api';
const API_URL = typeof window === 'undefined'
? (process.env.INTERNAL_API_URL || process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000/api')
: (process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000/api');
export const apiClient = createApiClient(API_URL);