9 lines
222 B
TypeScript
9 lines
222 B
TypeScript
import { createHttpClient } from '@goodgo/http-client';
|
|
|
|
const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost/api/v1';
|
|
|
|
export const apiClient = createHttpClient({
|
|
baseURL: API_URL,
|
|
timeout: 30000,
|
|
});
|