From edafc223db113598691dc285d2c1a44fcd35a4ce Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Fri, 9 Jan 2026 11:11:55 +0700 Subject: [PATCH 1/2] fix: baseUrl api --- src/lib/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 68ee6bf0..294c2aed 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -1,7 +1,7 @@ import axios from "axios"; const api = axios.create({ - baseURL: "https://mediahub.polri.go.id/api/v2", + baseURL: "https://new.netidhub.com/api", headers: { "Content-Type": "application/json", }, @@ -9,4 +9,3 @@ const api = axios.create({ export default api; - From 2d09af2e8b4f1d8b342eb92bf6fadbabe0ea1cf1 Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Fri, 9 Jan 2026 14:30:51 +0700 Subject: [PATCH 2/2] fix: local dev error --- .../results/component/column.tsx | 8 ++--- next.config.mjs | 35 ++++++++++++++++++- 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx b/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx index b95fcd11..a5aa31cb 100644 --- a/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx +++ b/app/[locale]/(protected)/admin/media-tracking/results/component/column.tsx @@ -67,10 +67,10 @@ const columns: ColumnDef[] = [ // }, // }, { - accessorKey: "resultTotal", + accessorKey: "amplification", header: () =>
Jumlah Amplifikasi
, cell: ({ row }) => { - const totalRaw = row.getValue("resultTotal") as number | string | null; + const totalRaw = row.getValue("amplification") as number | string | null; const total = totalRaw === null || totalRaw === undefined || totalRaw === "" @@ -110,11 +110,7 @@ const columns: ColumnDef[] = [ header: () =>
Status
, cell: ({ row }) => { const raw = Boolean(row.getValue("isProcessing")); - - // KONDISI STATUS const statusText = raw ? "Sedang Diproses" : "Sudah Selesai"; - - // WARNA STATUS const colorClass = raw ? "bg-yellow-100 text-yellow-700 border border-yellow-300" : "bg-green-100 text-green-700 border border-green-300"; diff --git a/next.config.mjs b/next.config.mjs index bb2c4280..59445c8a 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -20,6 +20,35 @@ const nextConfig = { // locales: ["en", "in"], // defaultLocale: "in", // }, + // images: { + // remotePatterns: [ + // { + // protocol: "https", + // hostname: "api.lorem.space", + // }, + // { + // protocol: "https", + // hostname: "lh3.googleusercontent.com", + // }, + // { + // protocol: "https", + // hostname: "a0.muscache.com", + // }, + // { + // protocol: "https", + // hostname: "avatars.githubusercontent.com", + // }, + // { + // protocol: "https", + // hostname: "i.pravatar.cc", + // }, + // { protocol: "https", hostname: "netidhub.com" }, + // { + // protocol: "https", + // hostname: "netidhub.com", + // }, + // ], + // }, images: { remotePatterns: [ { @@ -42,11 +71,15 @@ const nextConfig = { protocol: "https", hostname: "i.pravatar.cc", }, - { protocol: "https", hostname: "netidhub.com" }, { protocol: "https", hostname: "netidhub.com", }, + { + protocol: "https", + hostname: "new.netidhub.com", + pathname: "/**", + }, ], }, // eslint: {