2025-07-14 07:31:51 +00:00
|
|
|
import axios from "axios";
|
|
|
|
|
|
2026-01-20 01:04:42 +00:00
|
|
|
// Mengambil base URL dari environment variable, default ke API production
|
2026-02-05 11:14:16 +00:00
|
|
|
const baseURL =
|
|
|
|
|
process.env.NEXT_PUBLIC_API_BASE_URL || "https://jaecookelapagading.com/api";
|
|
|
|
|
const clientKey =
|
|
|
|
|
process.env.NEXT_PUBLIC_CLIENT_KEY || "9f83220f-88d7-433f-98cc-fc5ef5a16ab9";
|
2025-07-14 07:31:51 +00:00
|
|
|
|
|
|
|
|
const axiosBaseInstance = axios.create({
|
|
|
|
|
baseURL,
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json",
|
2026-01-20 01:04:42 +00:00
|
|
|
"X-Client-Key": clientKey,
|
2025-07-14 07:31:51 +00:00
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default axiosBaseInstance;
|