From 4a6973cb96482688e00a4a692ab5d8e649aa113f Mon Sep 17 00:00:00 2001
From: hanif salafi
Date: Wed, 10 Dec 2025 05:02:45 +0700
Subject: [PATCH] fix: reconfig from dev
---
.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 +-
.../form/broadcast/content-blast-form.tsx | 2 +-
.../form/setting/form-add-iklan-detail.tsx | 4 +-
.../form/setting/form-add-iklan-update.tsx | 6 +-
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 +++++++++---------
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 +-
40 files changed, 224 insertions(+), 224 deletions(-)
diff --git a/.env b/.env
index 1bcd6d8f..ec8f3629 100644
--- a/.env
+++ b/.env
@@ -1,3 +1,3 @@
-NEXT_PUBLIC_API=https://new.netidhub.com/api/v2
-NEXT_PUBLIC=https://new.netidhub.com
+NEXT_PUBLIC_API=https://mediahub.polri.go.id/api/v2
+NEXT_PUBLIC=https://mediahub.polri.go.id
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 a103b18e..1019211e 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://new.netidhub.com/api/v2/media/report/view?id=${id}`;
+ const url = `https://mediahub.polri.go.id/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 af596043..56aae0ac 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://new.netidhub.com/admin/settings/socmed";
+ const feedbackUrl = "https://mediahub.polri.go.id/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 69a4b659..2f1ba1e4 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
-
+
0) {
// formMedia.append("file", imageFiles[0]);
@@ -289,7 +289,7 @@ export function TambahIklanUpdate() {
formMedia.append("title", data.title);
formMedia.append("placements", selectedPlacement);
formMedia.append("description", data.description);
- formMedia.append("redirectLink", "https://new.netidhub.com");
+ formMedia.append("redirectLink", "https://mediahub.polri.go.id");
formMedia.append("assignedToLevel", handlePoldaPolresChange());
if (imageFiles.length > 0) {
@@ -631,7 +631,7 @@ export function TambahIklanUpdate() {
))}
setSelectedVideo(
- `https://new.netidhub.com/api/v2/assignment-expert/file/viewer?id=${file.id}`
+ `https://mediahub.polri.go.id/api/v2/assignment-expert/file/viewer?id=${file.id}`
)
}
>
diff --git a/components/landing-page/hero.tsx b/components/landing-page/hero.tsx
index 58b70a75..0a81ccf8 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://new.netidhub.com/api/v2/csrf";
+ const url = "https://mediahub.polri.go.id/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://new.netidhub.com/api/v2/csrf";
+ const url = "https://mediahub.polri.go.id/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 c7713ccb..49a0526d 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
-
+