We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c72f24 commit 8f981dbCopy full SHA for 8f981db
apps/web/lib/axios/axiosInstance.ts
@@ -1,8 +1,15 @@
1
import axios from "axios";
2
import { cookies } from "next/headers";
3
4
+let url = process.env.NEXT_PUBLIC_HTTP_URL;
5
+console.log("url0", url);
6
+if (url && !url.endsWith("/api/v1")) {
7
+ url = url + "/api/v1";
8
+ console.log("url1", url);
9
+}
10
+
11
const axiosInstance = axios.create({
- baseURL: process.env.NEXT_PUBLIC_HTTP_URL,
12
+ baseURL: url,
13
withCredentials: true,
14
});
15
0 commit comments