diff --git a/app/sitemap.xml/route.ts b/app/sitemap.xml/route.ts index 45acb9d..532f30d 100644 --- a/app/sitemap.xml/route.ts +++ b/app/sitemap.xml/route.ts @@ -3,7 +3,7 @@ import { getListArticle } from "@/services/article"; import { NextResponse } from "next/server"; export async function GET() { - const baseUrl = "https://humas.polri.go.id"; + const baseUrl = "https://new.humas.polri.go.id"; const response = await getListArticle({ page: 1, limit: "100", search: "" }); diff --git a/components/form/login.tsx b/components/form/login.tsx index 788b02f..bf5091a 100644 --- a/components/form/login.tsx +++ b/components/form/login.tsx @@ -235,7 +235,7 @@ export default function Login() { const resActivity = await saveActivity( { activityTypeId: 1, - url: "https://humas.polri.go.id/auth", + url: "https://new.humas.polri.go.id/auth", userId: profile?.data?.data?.id, }, accessData?.id_token diff --git a/components/main/detail/comment.tsx b/components/main/detail/comment.tsx index 175c589..fc8a5f7 100644 --- a/components/main/detail/comment.tsx +++ b/components/main/detail/comment.tsx @@ -112,7 +112,7 @@ export default function Comment(props: { id: string | null }) { } const req: any = { activityTypeId: 5, - url: "https://humas.polri.go.id/" + pathname, + url: "https://new.humas.polri.go.id/" + pathname, articleId: Number(id), }; @@ -172,7 +172,7 @@ export default function Comment(props: { id: string | null }) { } const req: any = { activityTypeId: 5, - url: "https://humas.polri.go.id/" + pathname, + url: "https://new.humas.polri.go.id/" + pathname, articleId: Number(id), userId: Number(userId), }; diff --git a/components/main/detail/e-magazine-detail.tsx b/components/main/detail/e-magazine-detail.tsx index 13d297a..b77eb84 100644 --- a/components/main/detail/e-magazine-detail.tsx +++ b/components/main/detail/e-magazine-detail.tsx @@ -36,7 +36,7 @@ export default function EMagazineDetail() { const doDownload = async (fileName: string, title: string): Promise => { try { const response = await fetch( - `https://humas.polri.go.id/magazine-files/viewer/${fileName}` + `https://new.humas.polri.go.id/magazine-files/viewer/${fileName}` ); if (!response.ok) { diff --git a/components/main/detail/new-detail.tsx b/components/main/detail/new-detail.tsx index dd27313..9ab9c35 100644 --- a/components/main/detail/new-detail.tsx +++ b/components/main/detail/new-detail.tsx @@ -39,7 +39,7 @@ export default function NewsDetailPage(props: { datas: any }) { const sendActivity = async () => { let req: any = { activityTypeId: 2, - url: "https://humas.polri.go.id" + pathname, + url: "https://new.humas.polri.go.id" + pathname, articleId: Number(id?.split("-")[0]), }; if (uid) { diff --git a/components/page/detail-news.tsx b/components/page/detail-news.tsx index 9729872..1ca42d5 100644 --- a/components/page/detail-news.tsx +++ b/components/page/detail-news.tsx @@ -51,11 +51,11 @@ export default function DetailNews(props: { data: any; listArticle: any }) { const handleShare = async (platform: string) => { let shareLink = ""; - const urls = "https://humas.polri.go.id/" + pathname; + const urls = "https://new.humas.polri.go.id/" + pathname; let req: any = { activityTypeId: 3, - url: "https://humas.polri.go.id/" + pathname, + url: "https://new.humas.polri.go.id/" + pathname, articleId: Number(id?.split("-")[0]), }; if (uid) { diff --git a/services/http-config/axios-interceptor-instance.ts b/services/http-config/axios-interceptor-instance.ts index e703c1e..d689462 100644 --- a/services/http-config/axios-interceptor-instance.ts +++ b/services/http-config/axios-interceptor-instance.ts @@ -1,7 +1,7 @@ import axios from "axios"; // const baseURL = "http://10.200.202.141:8802"; -const baseURL = "https://humas.polri.go.id/api"; +const baseURL = "https://new.humas.polri.go.id/api"; const axiosInterceptorInstance = axios.create({ baseURL, diff --git a/services/http-config/axios-interceptor-service.ts b/services/http-config/axios-interceptor-service.ts index 27f357a..94b931f 100644 --- a/services/http-config/axios-interceptor-service.ts +++ b/services/http-config/axios-interceptor-service.ts @@ -3,7 +3,7 @@ import { postSignIn } from "../master-user"; import Cookies from "js-cookie"; // const baseURL = "http://10.200.202.141:8802"; -const baseURL = "https://humas.polri.go.id/api"; +const baseURL = "https://new.humas.polri.go.id/api"; const refreshToken = Cookies.get("refresh_token"); diff --git a/services/http-config/http-base-instance.ts b/services/http-config/http-base-instance.ts index c4f1a0a..5b7b642 100644 --- a/services/http-config/http-base-instance.ts +++ b/services/http-config/http-base-instance.ts @@ -1,6 +1,6 @@ import axios from "axios"; -const baseURL = "https://humas.polri.go.id/api"; +const baseURL = "https://new.humas.polri.go.id/api"; // const baseURL = "http://10.200.202.141:8802"; const axiosBaseInstance = axios.create({