single service + 404 page and 500 page
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ import { getToken } from "./func";
|
||||
|
||||
const axiosInstance = axios.create({
|
||||
// baseURL: process.env.NEXT_PUBLIC_BASE_URL,
|
||||
baseURL: "https://api.danakcorp.com",
|
||||
baseURL: "http://192.168.1.108:4000",
|
||||
});
|
||||
|
||||
axiosInstance.interceptors.response.use(
|
||||
|
||||
@@ -76,6 +76,7 @@ export function toJalaliDate(
|
||||
const parsedDate = new Date(date);
|
||||
|
||||
if (isNaN(parsedDate.getTime())) {
|
||||
return "";
|
||||
throw new Error("Invalid date provided to toJalaliDate");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user