From 0809fd0ca80b08aa0fea8b4ab28fa8c6259f688e Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Mon, 1 Sep 2025 10:36:09 +0700 Subject: [PATCH] change new.humas to humas --- app/sitemap.xml/route.ts | 2 +- components/form/login.tsx | 2 +- components/main/detail/comment.tsx | 4 ++-- components/main/detail/e-magazine-detail.tsx | 2 +- components/main/detail/new-detail.tsx | 2 +- components/page/detail-news.tsx | 4 ++-- services/http-config/axios-interceptor-service.ts | 2 +- services/http-config/http-base-instance.ts | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/sitemap.xml/route.ts b/app/sitemap.xml/route.ts index 532f30d..45acb9d 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://new.humas.polri.go.id"; + const baseUrl = "https://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 bf5091a..788b02f 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://new.humas.polri.go.id/auth", + url: "https://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 fc8a5f7..175c589 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://new.humas.polri.go.id/" + pathname, + url: "https://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://new.humas.polri.go.id/" + pathname, + url: "https://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 b77eb84..13d297a 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://new.humas.polri.go.id/magazine-files/viewer/${fileName}` + `https://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 6974f14..fa0ba5d 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://new.humas.polri.go.id" + pathname, + url: "https://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 a4c1fc8..65912bb 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://new.humas.polri.go.id/" + pathname; + const urls = "https://humas.polri.go.id/" + pathname; let req: any = { activityTypeId: 3, - url: "https://new.humas.polri.go.id/" + pathname, + url: "https://humas.polri.go.id/" + pathname, articleId: Number(id?.split("-")[0]), }; if (uid) { diff --git a/services/http-config/axios-interceptor-service.ts b/services/http-config/axios-interceptor-service.ts index 94b931f..27f357a 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://new.humas.polri.go.id/api"; +const baseURL = "https://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 5b7b642..c4f1a0a 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://new.humas.polri.go.id/api"; +const baseURL = "https://humas.polri.go.id/api"; // const baseURL = "http://10.200.202.141:8802"; const axiosBaseInstance = axios.create({