feat: update env clientKey name
This commit is contained in:
parent
a90d658446
commit
e6ab2f60eb
2
.env
2
.env
|
|
@ -1 +1 @@
|
||||||
MEDOLS_CLIENT_KEY=bb65b1ad-e954-4a1a-b4d0-74df5bb0b640
|
NEXT_PUBLIC_MEDOLS_CLIENT_KEY=bb65b1ad-e954-4a1a-b4d0-74df5bb0b640
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
env: {
|
|
||||||
MEDOLS_CLIENT_KEY: process.env.MEDOLS_CLIENT_KEY,
|
|
||||||
},
|
|
||||||
images: {
|
images: {
|
||||||
domains: ["mikulnews.com", "dev.mikulnews.com"],
|
domains: ["mikulnews.com", "dev.mikulnews.com"],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const axiosInterceptorInstance = axios.create({
|
||||||
baseURL,
|
baseURL,
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"X-Client-Key": process.env.MEDOLS_CLIENT_KEY
|
"X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY
|
||||||
},
|
},
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ const axiosBaseInstance = axios.create({
|
||||||
baseURL,
|
baseURL,
|
||||||
headers: {
|
headers: {
|
||||||
"content-type": "application/json",
|
"content-type": "application/json",
|
||||||
"X-Client-Key": process.env.MEDOLS_CLIENT_KEY
|
"X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY
|
||||||
},
|
},
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import axiosBaseInstance from "./http-base-instance";
|
||||||
|
|
||||||
const defaultHeaders = {
|
const defaultHeaders = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"X-Client-Key": process.env.MEDOLS_CLIENT_KEY
|
"X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function httpGet(pathUrl: any, headers?: any) {
|
export async function httpGet(pathUrl: any, headers?: any) {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { getCsrfToken } from "../master-user";
|
||||||
|
|
||||||
const defaultHeaders = {
|
const defaultHeaders = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"X-Client-Key": process.env.MEDOLS_CLIENT_KEY
|
"X-Client-Key": process.env.NEXT_PUBLIC_MEDOLS_CLIENT_KEY
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function httpGetInterceptor(pathUrl: any) {
|
export async function httpGetInterceptor(pathUrl: any) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue