This commit is contained in:
javad committed 2024-02-21 10:49:30 +03:30
1 parent 9f4fbfd963
commit 655fd7ff2c
26 files changed
+839 -513

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ function setCookieFn(name:string, value:string, daysToExpire:number) {
}
const axiosInstance = axios.create({
baseURL: 'http://127.0.0.1:8000/',
baseURL: `${process.env.NEXT_PUBLIC_API_URL}/`,
timeout: 2000,
headers: {
'Content-Type': 'application/json',
@@ -39,7 +39,7 @@ axiosInstance.interceptors.response.use((response)=> {
try {
const res = await fetch("http://127.0.0.1:8000/auth/token/refresh/", {
const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/auth/token/refresh/`, {
method: "POST",
headers: {
'Content-Type': 'application/json; charset=UTF-8',