diff --git a/.env b/.env
index 348385bf..6b8157c2 100644
--- a/.env
+++ b/.env
@@ -1,3 +1,3 @@
-NEXT_PUBLIC_API=https://netidhub.com/api
-NEXT_PUBLIC=https://netidhub.com
+NEXT_PUBLIC_API=https://mediahub.polri.go.id/api
+NEXT_PUBLIC=https://mediahub.polri.go.id
NEXT_PUBLIC_TINYMCE_API_KEY=bhteuja26yz5p0aubxry9b95hs33amgn65kjv5km0fd5iuev
\ No newline at end of file
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b9c0e9c6..053f428c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,11 +2,11 @@ stages:
- build
- deploy
-build-dev:
+build-prod:
stage: build
when: on_success
only:
- - main
+ - prod
image: docker:stable
services:
- name: docker:dind
@@ -14,8 +14,8 @@ build-dev:
script:
- docker logout
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900
- - docker build -t 103.82.242.92:8900/mediahub/new-mediahub-fe:dev .
- - docker push 103.82.242.92:8900/mediahub/new-mediahub-fe:dev
+ - docker build -t 103.82.242.92:8900/mediahub/new-mediahub-fe:prod .
+ - docker push 103.82.242.92:8900/mediahub/new-mediahub-fe:prod
auto-deploy:
stage: deploy
diff --git a/app/[locale]/(protected)/contributor/report/components/columns.tsx b/app/[locale]/(protected)/contributor/report/components/columns.tsx
index 1b9579e5..c86bfe06 100644
--- a/app/[locale]/(protected)/contributor/report/components/columns.tsx
+++ b/app/[locale]/(protected)/contributor/report/components/columns.tsx
@@ -128,7 +128,7 @@ const useTableColumns = ({
try {
loading();
const response = await axios.get(
- `https://netidhub.com/api/media/report/download?id=${id}`,
+ `https://mediahub.polri.go.id/api/media/report/download?id=${id}`,
{
responseType: "blob",
}
diff --git a/app/[locale]/(protected)/contributor/report/components/report-table.tsx b/app/[locale]/(protected)/contributor/report/components/report-table.tsx
index 976a1e27..20ea5585 100644
--- a/app/[locale]/(protected)/contributor/report/components/report-table.tsx
+++ b/app/[locale]/(protected)/contributor/report/components/report-table.tsx
@@ -108,7 +108,7 @@ const ReportTable = () => {
const [previewData, setPreviewData] = React.useState(null);
const handlePreview = (id: string) => {
- const url = `https://new.netidhub.com/api/media/report/view?id=${id}`;
+ const url = `https://mediahub.polri.go.id/api/media/report/view?id=${id}`;
setPreviewData({ url });
setOpenPreview(true);
};
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
-
+
useEffect(() => {
async function fetchCategories() {
- const url = "https://netidhub.com/api/csrf";
+ const url = "https://mediahub.polri.go.id/api/csrf";
try {
const response = await fetch(url);
diff --git a/components/landing-page/hero.tsx b/components/landing-page/hero.tsx
index 46459187..5520fd77 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://netidhub.com/api/csrf";
+ const url = "https://mediahub.polri.go.id/api/csrf";
try {
const response = await fetch(url);
@@ -268,7 +268,7 @@ const Hero = (props: { group?: string }) => {
useEffect(() => {
async function fetchCategories() {
- const url = "https://netidhub.com/api/csrf";
+ const url = "https://mediahub.polri.go.id/api/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
-
+