single service + 404 page and 500 page

This commit is contained in:
hamid zarghami
2025-04-17 09:30:33 +03:30
parent a2c226b5a8
commit 1c314972da
21 changed files with 1032 additions and 7 deletions
+1 -1
View File
@@ -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(
+1
View File
@@ -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");
}