From 9a065c89f130ef0db064556db01f598af1987a30 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Wed, 10 Dec 2025 05:00:56 +0700 Subject: [PATCH] feat: update endpoint to new.netidhub.com --- .env | 4 +- .../report/components/report-table.tsx | 2 +- .../supervisor/setting/social-media/page.tsx | 2 +- .../[polda_name]/components/contact-us.tsx | 2 +- .../[polda_name]/components/latest-news.tsx | 2 +- .../[polda_name]/components/national-news.tsx | 2 +- .../components/navbar-kaltara.tsx | 2 +- .../[polda_name]/components/popular-news.tsx | 2 +- .../[polda_name]/components/regional-news.tsx | 2 +- .../[polda_name]/image/detail/[slug]/page.tsx | 6 +- .../image/detail/[slug]/page.tsx | 6 +- .../video/detail/[slug]/page.tsx | 6 +- .../content-management/download/page.tsx | 2 +- .../content-management/galery/page.tsx | 2 +- .../content-management/rewrite/page.tsx | 2 +- .../(public)/video/detail/[slug]/page.tsx | 2 +- app/[locale]/layout.tsx | 2 +- app/[locale]/sitemap.xml/route.ts | 2 +- .../broadcast/content-blast--detail-form.tsx | 2 +- .../form/broadcast/content-blast-form.tsx | 2 +- .../form/setting/form-add-iklan-detail.tsx | 4 +- .../form/setting/form-add-iklan-update.tsx | 4 +- components/form/setting/form-add-iklan.tsx | 2 +- .../form/task-ta/task-ta-detail-form.tsx | 2 +- components/landing-page/hero.tsx | 4 +- .../contact-us-kaltara.tsx | 2 +- .../landing-page/scrollable-content-polda.tsx | 2 +- .../scrollable-content-satker.tsx | 2 +- .../landing-page/search-section-new.tsx | 2 +- components/main/audio-detail.tsx | 6 +- components/main/document-detail.tsx | 6 +- components/main/image-detail.tsx | 6 +- components/main/video-detail.tsx | 6 +- components/partials/footer/index.tsx | 2 +- lighthouse-report.json | 332 +++++++++--------- next.config.mjs | 5 + service/auth.ts | 2 +- service/http-config/axios-base-instance.ts | 2 +- .../http-config/axios-base-prod-instance.ts | 2 +- .../http-config/axios-interceptor-instance.ts | 2 +- service/http-config/axiosInstanceJson.ts | 2 +- service/landing/landing.ts | 2 +- 42 files changed, 229 insertions(+), 224 deletions(-) diff --git a/.env b/.env index ec8f3629..1bcd6d8f 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ -NEXT_PUBLIC_API=https://mediahub.polri.go.id/api/v2 -NEXT_PUBLIC=https://mediahub.polri.go.id +NEXT_PUBLIC_API=https://new.netidhub.com/api/v2 +NEXT_PUBLIC=https://new.netidhub.com NEXT_PUBLIC_TINYMCE_API_KEY=bhteuja26yz5p0aubxry9b95hs33amgn65kjv5km0fd5iuev \ No newline at end of file diff --git a/app/[locale]/(protected)/contributor/report/components/report-table.tsx b/app/[locale]/(protected)/contributor/report/components/report-table.tsx index 1019211e..a103b18e 100644 --- a/app/[locale]/(protected)/contributor/report/components/report-table.tsx +++ b/app/[locale]/(protected)/contributor/report/components/report-table.tsx @@ -170,7 +170,7 @@ const ReportTable = () => { }; const handlePreview = (id: string) => { - const url = `https://mediahub.polri.go.id/api/v2/media/report/view?id=${id}`; + const url = `https://new.netidhub.com/api/v2/media/report/view?id=${id}`; setPreviewData({ url }); setOpenPreview(true); }; diff --git a/app/[locale]/(protected)/supervisor/setting/social-media/page.tsx b/app/[locale]/(protected)/supervisor/setting/social-media/page.tsx index 56aae0ac..af596043 100644 --- a/app/[locale]/(protected)/supervisor/setting/social-media/page.tsx +++ b/app/[locale]/(protected)/supervisor/setting/social-media/page.tsx @@ -33,7 +33,7 @@ const responseFacebook = (response: FacebookLoginResponse) => { const clientId = "515231445138-5ius52rjsqucc6petfpv1d42v1lj778o.apps.googleusercontent.com"; - const feedbackUrl = "https://mediahub.polri.go.id/admin/settings/socmed"; + const feedbackUrl = "https://new.netidhub.com/admin/settings/socmed"; async function sendFbToken(token: string) { const res = await saveFbToken(token); diff --git a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/contact-us.tsx b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/contact-us.tsx index 2f1ba1e4..69a4b659 100644 --- a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/contact-us.tsx +++ b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/contact-us.tsx @@ -88,7 +88,7 @@ const ContactUs = () => { Pedoman Media Siber - + { // useEffect(() => { // async function fetchCategories() { - // const url = "https://mediahub.polri.go.id/api/v2/csrf"; + // const url = "https://new.netidhub.com/api/v2/csrf"; // try { // const response = await fetch(url); diff --git a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/national-news.tsx b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/national-news.tsx index 9000e6e2..aa1e699a 100644 --- a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/national-news.tsx +++ b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/national-news.tsx @@ -82,7 +82,7 @@ const NationalNews = () => { // useEffect(() => { // async function fetchCategories() { - // const url = "https://mediahub.polri.go.id/api/v2/csrf"; + // const url = "https://new.netidhub.com/api/v2/csrf"; // try { // const response = await fetch(url); diff --git a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/navbar-kaltara.tsx b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/navbar-kaltara.tsx index aa9a63da..94a0452d 100644 --- a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/navbar-kaltara.tsx +++ b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/navbar-kaltara.tsx @@ -44,7 +44,7 @@ const categoryLinks: any = { Kesehatan: "https://tribratanews.kaltara.polri.go.id/category/kesehatan/", Olahraga: "https://tribratanews.kaltara.polri.go.id/category/olahraga/", PPA: "https://tribratanews.kaltara.polri.go.id/category/ppa/", - MediaHub: "https://mediahub.polri.go.id/in/polda/kaltara", + MediaHub: "https://new.netidhub.com/in/polda/kaltara", }; const NavbarKaltaraTbnews = () => { diff --git a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/popular-news.tsx b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/popular-news.tsx index 398086fe..44b14d17 100644 --- a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/popular-news.tsx +++ b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/popular-news.tsx @@ -23,7 +23,7 @@ const PopularNews = () => { useEffect(() => { async function fetchCategories() { - const url = "https://mediahub.polri.go.id/api/v2/csrf"; + const url = "https://new.netidhub.com/api/v2/csrf"; try { const response = await fetch(url); diff --git a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/regional-news.tsx b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/regional-news.tsx index ab23f953..392729d0 100644 --- a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/regional-news.tsx +++ b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/components/regional-news.tsx @@ -75,7 +75,7 @@ const RegionalNews = () => { // useEffect(() => { // async function fetchCategories() { - // const url = "https://mediahub.polri.go.id/api/v2/csrf"; + // const url = "https://new.netidhub.com/api/v2/csrf"; // try { // const response = await fetch(url); diff --git a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/image/detail/[slug]/page.tsx b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/image/detail/[slug]/page.tsx index 8d2ac61e..adb21278 100644 --- a/app/[locale]/(public)/(polda)/tbnews/[polda_name]/image/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/(polda)/tbnews/[polda_name]/image/detail/[slug]/page.tsx @@ -868,7 +868,7 @@ const DetailInfo = () => { onClick={() => handleShare( "fb", - `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` + `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` ) } > @@ -883,7 +883,7 @@ const DetailInfo = () => { onClick={() => handleShare( "tw", - `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` + `https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` ) } > @@ -898,7 +898,7 @@ const DetailInfo = () => { onClick={() => handleShare( "wa", - `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}` + `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` ) } > diff --git a/app/[locale]/(public)/(satker)/satker/[satker_name]/image/detail/[slug]/page.tsx b/app/[locale]/(public)/(satker)/satker/[satker_name]/image/detail/[slug]/page.tsx index 39228cdd..9ffc530f 100644 --- a/app/[locale]/(public)/(satker)/satker/[satker_name]/image/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/(satker)/satker/[satker_name]/image/detail/[slug]/page.tsx @@ -576,7 +576,7 @@ const DetailInfo = () => { onClick={() => handleShare( "fb", - `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` + `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` ) } > @@ -591,7 +591,7 @@ const DetailInfo = () => { onClick={() => handleShare( "tw", - `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` + `https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` ) } > @@ -606,7 +606,7 @@ const DetailInfo = () => { onClick={() => handleShare( "wa", - `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}` + `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` ) } > diff --git a/app/[locale]/(public)/(satker)/satker/[satker_name]/video/detail/[slug]/page.tsx b/app/[locale]/(public)/(satker)/satker/[satker_name]/video/detail/[slug]/page.tsx index a39705ab..d5ebfd8a 100644 --- a/app/[locale]/(public)/(satker)/satker/[satker_name]/video/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/(satker)/satker/[satker_name]/video/detail/[slug]/page.tsx @@ -666,7 +666,7 @@ const DetailVideo = () => { onClick={() => handleShare( "fb", - `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` + `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` ) } > @@ -681,7 +681,7 @@ const DetailVideo = () => { onClick={() => handleShare( "tw", - `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` + `https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` ) } > @@ -696,7 +696,7 @@ const DetailVideo = () => { onClick={() => handleShare( "wa", - `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}` + `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` ) } > diff --git a/app/[locale]/(public)/content-management/download/page.tsx b/app/[locale]/(public)/content-management/download/page.tsx index a633a4d3..46222c42 100644 --- a/app/[locale]/(public)/content-management/download/page.tsx +++ b/app/[locale]/(public)/content-management/download/page.tsx @@ -284,7 +284,7 @@ const Galery = (props: any) => { const copyToClip = async (url: any) => { await navigator.clipboard.writeText( - `https://mediahub.polri.go.id/video/detail/${url}` + `https://new.netidhub.com/video/detail/${url}` ); setCopySuccess("Copied"); // toast.success("Link Berhasil Di Copy"); diff --git a/app/[locale]/(public)/content-management/galery/page.tsx b/app/[locale]/(public)/content-management/galery/page.tsx index 8c54c9b0..c439c346 100644 --- a/app/[locale]/(public)/content-management/galery/page.tsx +++ b/app/[locale]/(public)/content-management/galery/page.tsx @@ -291,7 +291,7 @@ const Galery = (props: any) => { const copyToClip = async (url: any) => { await navigator.clipboard.writeText( - `https://mediahub.polri.go.id/video/detail/${url}` + `https://new.netidhub.com/video/detail/${url}` ); setCopySuccess("Copied"); // toast.success("Link Berhasil Di Copy"); diff --git a/app/[locale]/(public)/content-management/rewrite/page.tsx b/app/[locale]/(public)/content-management/rewrite/page.tsx index d96abd1a..f3fa7736 100644 --- a/app/[locale]/(public)/content-management/rewrite/page.tsx +++ b/app/[locale]/(public)/content-management/rewrite/page.tsx @@ -134,7 +134,7 @@ const page = () => { const copyToClip = async (url: any) => { await navigator.clipboard.writeText( - `https://mediahub.polri.go.id/image/detail/${url}` + `https://new.netidhub.com/image/detail/${url}` ); setCopySuccess("Copied"); // toast.success("Link Berhasil Di Copy"); diff --git a/app/[locale]/(public)/video/detail/[slug]/page.tsx b/app/[locale]/(public)/video/detail/[slug]/page.tsx index 787308e3..c7ee9052 100644 --- a/app/[locale]/(public)/video/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/video/detail/[slug]/page.tsx @@ -43,7 +43,7 @@ export async function generateMetadata({ params }: any): Promise { openGraph: { title: video?.title, description: video?.description, - url: `https://mediahub.polri.go.id/in/video/detail/${slug}`, + url: `https://new.netidhub.com/in/video/detail/${slug}`, type: "video.other", images: [ { diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index e0987d66..a6a038e3 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -24,7 +24,7 @@ import ChunkLoadErrorHandler from "@/components/chunk-load-error-handler"; export const metadata: Metadata = { title: "Media Hub | POLRI", description: "Media Hub Platform for POLRI", - metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://mediahub.polri.go.id'), + metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://new.netidhub.com'), openGraph: { title: "Media Hub | POLRI", description: "Media Hub Platform for POLRI", diff --git a/app/[locale]/sitemap.xml/route.ts b/app/[locale]/sitemap.xml/route.ts index 27a798b0..5b893261 100644 --- a/app/[locale]/sitemap.xml/route.ts +++ b/app/[locale]/sitemap.xml/route.ts @@ -4,7 +4,7 @@ import { NextResponse } from "next/server"; export async function GET() { try { - const baseUrl = "https://mediahub.polri.go.id/in"; + const baseUrl = "https://new.netidhub.com/in"; const response = await getListContent({ page: 1, diff --git a/components/form/broadcast/content-blast--detail-form.tsx b/components/form/broadcast/content-blast--detail-form.tsx index 47a51bc4..81b3da6f 100644 --- a/components/form/broadcast/content-blast--detail-form.tsx +++ b/components/form/broadcast/content-blast--detail-form.tsx @@ -35,7 +35,7 @@ export default function DetailContentBlast() { const detailData = res?.data?.data; let updatedUrl = detailData.contentUrl; - const domainsToUpdate = ["mediahub.polri.go.id", "netidhub.com"]; + const domainsToUpdate = ["mediahub.polri.go.id", "new.netidhub.com", "netidhub.com"]; domainsToUpdate.forEach((domain) => { if ( diff --git a/components/form/broadcast/content-blast-form.tsx b/components/form/broadcast/content-blast-form.tsx index 0cf14fe1..602c04df 100644 --- a/components/form/broadcast/content-blast-form.tsx +++ b/components/form/broadcast/content-blast-form.tsx @@ -564,7 +564,7 @@ export default function ContentBlast() { // form.setValue("title", `${details?.title}`); // form.setValue( // "url", -// details?.pageUrl || "https://mediahub.polri.go.id" +// details?.pageUrl || "https://new.netidhub.com" // ); // if (type == "wa") { // body = `${textEllipsis(details?.description, 150)}`; diff --git a/components/form/setting/form-add-iklan-detail.tsx b/components/form/setting/form-add-iklan-detail.tsx index 57f89fdc..631a3799 100644 --- a/components/form/setting/form-add-iklan-detail.tsx +++ b/components/form/setting/form-add-iklan-detail.tsx @@ -228,7 +228,7 @@ export function TambahIklanDetail() { formMedia.append("title", data.title); formMedia.append("placements", selectedPlacement); formMedia.append("description", data.description); - formMedia.append("redirectLink", "https://mediahub.polri.go.id"); + formMedia.append("redirectLink", "https://new.netidhub.com"); formMedia.append("assignedToLevel", handlePoldaPolresChange()); formMedia.append("file", imageFiles[0]); @@ -530,7 +530,7 @@ export function TambahIklanDetail() {

0) { @@ -631,7 +631,7 @@ export function TambahIklanUpdate() { ))} setSelectedVideo( - `https://mediahub.polri.go.id/api/v2/assignment-expert/file/viewer?id=${file.id}` + `https://new.netidhub.com/api/v2/assignment-expert/file/viewer?id=${file.id}` ) } > diff --git a/components/landing-page/hero.tsx b/components/landing-page/hero.tsx index 0a81ccf8..58b70a75 100644 --- a/components/landing-page/hero.tsx +++ b/components/landing-page/hero.tsx @@ -50,7 +50,7 @@ const HeroModal = ({ onClose }: { onClose: () => void }) => { useEffect(() => { async function fetchCategories() { - const url = "https://mediahub.polri.go.id/api/v2/csrf"; + const url = "https://new.netidhub.com/api/v2/csrf"; try { const response = await fetch(url); @@ -268,7 +268,7 @@ const Hero = (props: { group?: string }) => { useEffect(() => { async function fetchCategories() { - const url = "https://mediahub.polri.go.id/api/v2/csrf"; + const url = "https://new.netidhub.com/api/v2/csrf"; try { const response = await fetch(url); diff --git a/components/landing-page/landing-polda-kaltara/contact-us-kaltara.tsx b/components/landing-page/landing-polda-kaltara/contact-us-kaltara.tsx index 49a0526d..c7713ccb 100644 --- a/components/landing-page/landing-polda-kaltara/contact-us-kaltara.tsx +++ b/components/landing-page/landing-polda-kaltara/contact-us-kaltara.tsx @@ -146,7 +146,7 @@ const ContactUsKaltara = () => {
Pedoman Media Siber - + { useEffect(() => { async function fetchCategories() { - const url = "https://mediahub.polri.go.id/api/v2/csrf"; + const url = "https://new.netidhub.com/api/v2/csrf"; try { const response = await fetch(url); diff --git a/components/landing-page/scrollable-content-satker.tsx b/components/landing-page/scrollable-content-satker.tsx index 11cdaa70..8c21f2c7 100644 --- a/components/landing-page/scrollable-content-satker.tsx +++ b/components/landing-page/scrollable-content-satker.tsx @@ -35,7 +35,7 @@ const ScrollableContentSatker = () => { : ""; useEffect(() => { async function fetchCategories() { - const url = "https://mediahub.polri.go.id/api/v2/csrf"; + const url = "https://new.netidhub.com/api/v2/csrf"; try { const response = await fetch(url); diff --git a/components/landing-page/search-section-new.tsx b/components/landing-page/search-section-new.tsx index a9964810..a14d30e4 100644 --- a/components/landing-page/search-section-new.tsx +++ b/components/landing-page/search-section-new.tsx @@ -39,7 +39,7 @@ const ScrollableContent = () => { useEffect(() => { async function fetchCategories() { - const url = "https://mediahub.polri.go.id/api/v2/csrf"; + const url = "https://new.netidhub.com/api/v2/csrf"; try { const response = await fetch(url); diff --git a/components/main/audio-detail.tsx b/components/main/audio-detail.tsx index 517a663a..47e975af 100644 --- a/components/main/audio-detail.tsx +++ b/components/main/audio-detail.tsx @@ -892,7 +892,7 @@ const DetailAudio = () => { onClick={() => handleShare( "fb", - `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` + `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` ) } > @@ -907,7 +907,7 @@ const DetailAudio = () => { onClick={() => handleShare( "tw", - `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` + `https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` ) } > @@ -922,7 +922,7 @@ const DetailAudio = () => { onClick={() => handleShare( "wa", - `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}` + `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` ) } > diff --git a/components/main/document-detail.tsx b/components/main/document-detail.tsx index 607dc2dd..f916d848 100644 --- a/components/main/document-detail.tsx +++ b/components/main/document-detail.tsx @@ -742,7 +742,7 @@ const DetailDocument = () => { onClick={() => handleShare( "fb", - `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` + `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` ) } > @@ -757,7 +757,7 @@ const DetailDocument = () => { onClick={() => handleShare( "tw", - `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` + `https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` ) } > @@ -772,7 +772,7 @@ const DetailDocument = () => { onClick={() => handleShare( "wa", - `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}` + `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` ) } > diff --git a/components/main/image-detail.tsx b/components/main/image-detail.tsx index c27ebc6e..7a47ee33 100644 --- a/components/main/image-detail.tsx +++ b/components/main/image-detail.tsx @@ -891,7 +891,7 @@ const DetailImage = (data: any) => { onClick={() => handleShare( "fb", - `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` + `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` ) } > @@ -906,7 +906,7 @@ const DetailImage = (data: any) => { onClick={() => handleShare( "tw", - `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` + `https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` ) } > @@ -921,7 +921,7 @@ const DetailImage = (data: any) => { onClick={() => handleShare( "wa", - `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}` + `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` ) } > diff --git a/components/main/video-detail.tsx b/components/main/video-detail.tsx index f2cc40b1..3863ff83 100644 --- a/components/main/video-detail.tsx +++ b/components/main/video-detail.tsx @@ -711,7 +711,7 @@ const DetailVideo = () => { onClick={() => handleShare( "fb", - `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` + `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}` ) } > @@ -726,7 +726,7 @@ const DetailVideo = () => { onClick={() => handleShare( "tw", - `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` + `https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` ) } > @@ -741,7 +741,7 @@ const DetailVideo = () => { onClick={() => handleShare( "wa", - `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}` + `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` ) } > diff --git a/components/partials/footer/index.tsx b/components/partials/footer/index.tsx index af0d112d..ca3787fe 100644 --- a/components/partials/footer/index.tsx +++ b/components/partials/footer/index.tsx @@ -31,7 +31,7 @@ const DashCodeFooter = () => { >
{"Image"}", + "snippet": "\"Banner", "nodeLabel": "Banner 10" }, - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/10", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/10", "requestStartTime": 28457561.421, "totalBytes": 222485, "wastedBytes": 222485, @@ -5730,10 +5730,10 @@ "width": 0, "height": 0 }, - "snippet": "\"Banner", + "snippet": "\"Banner", "nodeLabel": "Banner 11" }, - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/11", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/11", "requestStartTime": 28457561.267, "totalBytes": 111800, "wastedBytes": 111800, @@ -6098,10 +6098,10 @@ "width": 0, "height": 0 }, - "snippet": "\"Banner", + "snippet": "\"Banner", "nodeLabel": "Banner 10" }, - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/10", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/10", "fromProtocol": true, "isCrossOrigin": true, "totalBytes": 222485, @@ -6122,10 +6122,10 @@ "width": 0, "height": 0 }, - "snippet": "\"Banner", + "snippet": "\"Banner", "nodeLabel": "Banner 11" }, - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/11", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/11", "fromProtocol": true, "isCrossOrigin": true, "totalBytes": 111800, @@ -6806,85 +6806,85 @@ "type": "subitems", "items": [ { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/pagination?title=&enablePage=1&sortBy=createdAt&sort=desc&size=4&page=0" + "url": "https://new.netidhub.com/api/v2/advertisements/pagination?title=&enablePage=1&sortBy=createdAt&sort=desc&size=4&page=0" }, { - "url": "https://mediahub.polri.go.id/api/v2/general/privacy-policy/1" + "url": "https://new.netidhub.com/api/v2/general/privacy-policy/1" }, { - "url": "https://mediahub.polri.go.id/api/v2/public/users/roles" + "url": "https://new.netidhub.com/api/v2/public/users/roles" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=false" + "url": "https://new.netidhub.com/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=false" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=true" + "url": "https://new.netidhub.com/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllSatker=true" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllSatker=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllPolda=true" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllPolda=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/interstitial?group=&isInt=true" + "url": "https://new.netidhub.com/api/v2/media/public/interstitial?group=&isInt=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllSatker=true" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllSatker=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/interstitial?group=&isInt=false" + "url": "https://new.netidhub.com/api/v2/media/public/interstitial?group=&isInt=false" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/banner?group=&isInt=true" + "url": "https://new.netidhub.com/api/v2/media/public/banner?group=&isInt=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/banner?group=&isInt=false" + "url": "https://new.netidhub.com/api/v2/media/public/banner?group=&isInt=false" }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllPolda=true" + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllPolda=true" }, { - "url": "https://mediahub.polri.go.id/api/v2/calendars/pagination?enablePage=1&page=0&size=100&title=" + "url": "https://new.netidhub.com/api/v2/calendars/pagination?enablePage=1&page=0&size=100&title=" }, { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/11" + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/11" }, { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/10" + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/10" }, { - "url": "https://mediahub.polri.go.id/api/v2/calendars/file/viewer/6" + "url": "https://new.netidhub.com/api/v2/calendars/file/viewer/6" }, { - "url": "https://mediahub.polri.go.id/api/v2/calendars/file/viewer/7" + "url": "https://new.netidhub.com/api/v2/calendars/file/viewer/7" }, { - "url": "https://mediahub.polri.go.id/api/v2/csrf" + "url": "https://new.netidhub.com/api/v2/csrf" }, { - "url": "https://mediahub.polri.go.id/api/v2/calendars/file/viewer/3" + "url": "https://new.netidhub.com/api/v2/calendars/file/viewer/3" }, { - "url": "https://mediahub.polri.go.id/api/v2/calendars/file/viewer/5" + "url": "https://new.netidhub.com/api/v2/calendars/file/viewer/5" } ] } @@ -8057,7 +8057,7 @@ ], "items": [ { - "origin": "https://mediahub.polri.go.id", + "origin": "https://new.netidhub.com", "wastedMs": 423.85200000000003 } ] @@ -8170,132 +8170,132 @@ "type": "subitems", "items": [ { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/pagination?title=&enablePage=1&sortBy=createdAt&sort=desc&size=4&page=0", + "url": "https://new.netidhub.com/api/v2/advertisements/pagination?title=&enablePage=1&sortBy=createdAt&sort=desc&size=4&page=0", "mainThreadTime": 0.44199999794363976, "transferSize": 7176 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/banner?group=&isInt=false", + "url": "https://new.netidhub.com/api/v2/media/public/banner?group=&isInt=false", "mainThreadTime": 0.31999998539686203, "transferSize": 48662 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true", "mainThreadTime": 0.3189999982714653, "transferSize": 17305 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/banner?group=&isInt=true", + "url": "https://new.netidhub.com/api/v2/media/public/banner?group=&isInt=true", "mainThreadTime": 0.279999990016222, "transferSize": 3811 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false", "mainThreadTime": 0.2550000101327896, "transferSize": 29422 }, { - "url": "https://mediahub.polri.go.id/api/v2/users/info", + "url": "https://new.netidhub.com/api/v2/users/info", "mainThreadTime": 0.2460000030696392, "transferSize": 760 }, { - "url": "https://mediahub.polri.go.id/api/v2/calendars/pagination?enablePage=1&page=0&size=100&title=", + "url": "https://new.netidhub.com/api/v2/calendars/pagination?enablePage=1&page=0&size=100&title=", "mainThreadTime": 0.23200000450015068, "transferSize": 4223 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", "mainThreadTime": 0.19899999350309372, "transferSize": 19985 }, { - "url": "https://mediahub.polri.go.id/api/v2/general/privacy-policy/1", + "url": "https://new.netidhub.com/api/v2/general/privacy-policy/1", "mainThreadTime": 0.17999999970197678, "transferSize": 10110 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", "mainThreadTime": 0.17800000309944153, "transferSize": 11109 }, { - "url": "https://mediahub.polri.go.id/api/v2/public/users/roles", + "url": "https://new.netidhub.com/api/v2/public/users/roles", "mainThreadTime": 0.16200000792741776, "transferSize": 1938 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllPolda=true", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllPolda=true", "mainThreadTime": 0.12600000202655792, "transferSize": 568 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllPolda=true", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllPolda=true", "mainThreadTime": 0.1120000034570694, "transferSize": 9344 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllSatker=true", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=false&isAllSatker=true", "mainThreadTime": 0.11000000312924385, "transferSize": 8969 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=true&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", "mainThreadTime": 0.11000000312924385, "transferSize": 5055 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=true", + "url": "https://new.netidhub.com/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=true", "mainThreadTime": 0.10000000149011612, "transferSize": 1168 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=clickCount&size=5&isInt=false&typeId=1&title=&group=&categoryId=&fileFormats=&tags=&startDate=&endDate=&month=&year=", "mainThreadTime": 0.08500000089406967, "transferSize": 5580 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/interstitial?group=&isInt=true", + "url": "https://new.netidhub.com/api/v2/media/public/interstitial?group=&isInt=true", "mainThreadTime": 0.07899999618530273, "transferSize": 3520 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllSatker=true", + "url": "https://new.netidhub.com/api/v2/media/public/list?enablePage=1&sort=desc&sortBy=createdAt&size=5&page=0&typeId=1&title=&categoryId=&fileFormats=&tags=&group=&startDate=&endDate=&month=&year=&isInt=true&isAllSatker=true", "mainThreadTime": 0.07700000330805779, "transferSize": 5733 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=false", + "url": "https://new.netidhub.com/api/v2/media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=0&group=&type=&isInt=false", "mainThreadTime": 0.07199999690055847, "transferSize": 1155 }, { - "url": "https://mediahub.polri.go.id/api/v2/media/public/interstitial?group=&isInt=false", + "url": "https://new.netidhub.com/api/v2/media/public/interstitial?group=&isInt=false", "mainThreadTime": 0.06600000336766243, "transferSize": 4316 }, { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/10", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/10", "mainThreadTime": 0, "transferSize": 222605 }, { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/9", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/9", "mainThreadTime": 0, "transferSize": 205272 }, { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/8", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/8", "mainThreadTime": 0, "transferSize": 189897 }, { - "url": "https://mediahub.polri.go.id/api/v2/advertisements/viewer/11", + "url": "https://new.netidhub.com/api/v2/advertisements/viewer/11", "mainThreadTime": 0, "transferSize": 111800 }, { - "url": "https://mediahub.polri.go.id/api/v2/csrf", + "url": "https://new.netidhub.com/api/v2/csrf", "mainThreadTime": 0, "transferSize": 3171 } @@ -9452,7 +9452,7 @@ { "name": "netidhub.com", "origins": [ - "https://mediahub.polri.go.id" + "https://new.netidhub.com" ], "isUnrecognized": true }, diff --git a/next.config.mjs b/next.config.mjs index 4b2ab06e..e51766c5 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -52,6 +52,11 @@ const nextConfig = { hostname: "mediahub.polri.go.id", pathname: "/**", }, + { + protocol: "https", + hostname: "new.netidhub.com", + pathname: "/**", + }, { protocol: "https", hostname: "netidhub.com", diff --git a/service/auth.ts b/service/auth.ts index 49c67bca..cbc53887 100644 --- a/service/auth.ts +++ b/service/auth.ts @@ -45,7 +45,7 @@ export async function getCsrfToken() { "content-type": "application/json", }; return httpGet(pathUrl, headers); - // const url = 'https://mediahub.polri.go.id/api/v2/csrf'; + // const url = 'https://new.netidhub.com/api/v2/csrf'; // try { // const response = await fetch(url, { // method: 'GET', diff --git a/service/http-config/axios-base-instance.ts b/service/http-config/axios-base-instance.ts index c0210637..96c6bbf6 100644 --- a/service/http-config/axios-base-instance.ts +++ b/service/http-config/axios-base-instance.ts @@ -1,6 +1,6 @@ import axios from "axios"; -const baseURL = "https://mediahub.polri.go.id/api/v2/"; +const baseURL = "https://new.netidhub.com/api/v2/"; const axiosBaseInstance = axios.create({ baseURL, diff --git a/service/http-config/axios-base-prod-instance.ts b/service/http-config/axios-base-prod-instance.ts index f02f3fc1..473c74ac 100644 --- a/service/http-config/axios-base-prod-instance.ts +++ b/service/http-config/axios-base-prod-instance.ts @@ -1,6 +1,6 @@ import axios from "axios"; -const baseURL = "https://mediahub.polri.go.id/api/v2/"; +const baseURL = "https://new.netidhub.com/api/v2/"; const axiosBaseProdInstance = axios.create({ baseURL, diff --git a/service/http-config/axios-interceptor-instance.ts b/service/http-config/axios-interceptor-instance.ts index d2a6be3d..8269c8f0 100644 --- a/service/http-config/axios-interceptor-instance.ts +++ b/service/http-config/axios-interceptor-instance.ts @@ -2,7 +2,7 @@ import axios from "axios"; import Cookies from "js-cookie"; import { getCsrfToken, login } from "../auth"; -const baseURL = "https://mediahub.polri.go.id/api/v2/"; +const baseURL = "https://new.netidhub.com/api/v2/"; const refreshToken = Cookies.get("refresh_token"); diff --git a/service/http-config/axiosInstanceJson.ts b/service/http-config/axiosInstanceJson.ts index c5522b5e..2ca6ae39 100644 --- a/service/http-config/axiosInstanceJson.ts +++ b/service/http-config/axiosInstanceJson.ts @@ -1,6 +1,6 @@ import axios from "axios"; -const baseURL = "https://mediahub.polri.go.id/api/v2/"; +const baseURL = "https://new.netidhub.com/api/v2/"; const axiosInstanceJson = axios.create({ baseURL, diff --git a/service/landing/landing.ts b/service/landing/landing.ts index 981ffc0b..08e25d07 100644 --- a/service/landing/landing.ts +++ b/service/landing/landing.ts @@ -12,7 +12,7 @@ export async function getCsrfToken() { "content-type": "application/json", }; return httpGet(pathUrl, headers); - // const url = 'https://mediahub.polri.go.id/api/v2/csrf'; + // const url = 'https://new.netidhub.com/api/v2/csrf'; // try { // const response = await fetch(url, { // method: 'GET',