From 45a9f05efc1dfd573ba1b575149f99c14948c6c6 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Thu, 3 Jul 2025 23:23:17 +0700 Subject: [PATCH] feat: update clientKey --- .env | 2 +- service/http-config/axios-interceptor-instance.ts | 2 +- service/http-config/http-base-instance.ts | 2 +- service/http-config/http-base-services.ts | 2 +- service/http-config/http-interceptor-services.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env b/.env index d5b009c..f104216 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -NEXT_PUBLIC_MEDOLS_CLIENT_KEY=bb65b1ad-e954-4a1a-b4d0-74df5bb0b640 \ No newline at end of file +MEDOLS_CLIENT_KEY=bb65b1ad-e954-4a1a-b4d0-74df5bb0b640 \ No newline at end of file diff --git a/service/http-config/axios-interceptor-instance.ts b/service/http-config/axios-interceptor-instance.ts index f44e5f1..079398f 100644 --- a/service/http-config/axios-interceptor-instance.ts +++ b/service/http-config/axios-interceptor-instance.ts @@ -10,7 +10,7 @@ const axiosInterceptorInstance = axios.create({ baseURL, headers: { "Content-Type": "application/json", - "X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY + "X-Client-Key": process.env.MEDOLS_CLIENT_KEY || 'bb65b1ad-e954-4a1a-b4d0-74df5bb0b640' }, withCredentials: true, }); diff --git a/service/http-config/http-base-instance.ts b/service/http-config/http-base-instance.ts index 4bafab3..574f160 100644 --- a/service/http-config/http-base-instance.ts +++ b/service/http-config/http-base-instance.ts @@ -6,7 +6,7 @@ const axiosBaseInstance = axios.create({ baseURL, headers: { "content-type": "application/json", - "X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY + "X-Client-Key": process.env.MEDOLS_CLIENT_KEY || 'bb65b1ad-e954-4a1a-b4d0-74df5bb0b640' }, withCredentials: true, }); diff --git a/service/http-config/http-base-services.ts b/service/http-config/http-base-services.ts index a736c57..25e52fc 100644 --- a/service/http-config/http-base-services.ts +++ b/service/http-config/http-base-services.ts @@ -2,7 +2,7 @@ import axiosBaseInstance from "./http-base-instance"; const defaultHeaders = { "Content-Type": "application/json", - "X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY + "X-Client-Key": process.env.MEDOLS_CLIENT_KEY || 'bb65b1ad-e954-4a1a-b4d0-74df5bb0b640' }; export async function httpGet(pathUrl: any, headers?: any) { diff --git a/service/http-config/http-interceptor-services.ts b/service/http-config/http-interceptor-services.ts index 3564888..373e40b 100644 --- a/service/http-config/http-interceptor-services.ts +++ b/service/http-config/http-interceptor-services.ts @@ -5,7 +5,7 @@ import { getCsrfToken } from "../master-user"; const defaultHeaders = { "Content-Type": "application/json", - "X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY + "X-Client-Key": process.env.MEDOLS_CLIENT_KEY || 'bb65b1ad-e954-4a1a-b4d0-74df5bb0b640' }; export async function httpGetInterceptor(pathUrl: any) {