feat: change domain to prod fqdn

This commit is contained in:
hanif salafi 2025-04-28 23:29:26 +07:00
parent 854994e2c8
commit aca5e5e119
10 changed files with 13 additions and 13 deletions

View File

@ -95,7 +95,7 @@ export default function Login() {
const resActivity = await saveActivity(
{
activityTypeId: 1,
url: "https://kontenhumas.com/auth",
url: "https://new-humas.polri.go.id/auth",
userId: profile?.data?.data?.id,
},
accessData?.id_token
@ -218,7 +218,7 @@ export default function Login() {
const resActivity = await saveActivity(
{
activityTypeId: 1,
url: "https://kontenhumas.com/auth",
url: "https://new-humas.polri.go.id/auth",
userId: profile?.data?.data?.id,
},
accessData?.id_token

View File

@ -133,7 +133,7 @@ export default function AddsCarousel() {
// ) : (
// <video
// ref={videoRef}
// src="https://kontenhumas.com/api/advertisement/viewer/inisiatif-jumat-berkah-oleh-polres-simalungun-kapolsek-tanah-jawa-bagikan-sembako-untuk-warga-kurang-mampu-49_265348.mp4"
// src="https://new-humas.polri.go.id/api/advertisement/viewer/inisiatif-jumat-berkah-oleh-polres-simalungun-kapolsek-tanah-jawa-bagikan-sembako-untuk-warga-kurang-mampu-49_265348.mp4"
// />
// )
<Image

View File

@ -103,7 +103,7 @@ export default function Comment(props: { id: string | null }) {
}
const req: any = {
activityTypeId: 5,
url: "https://kontenhumas.com/" + pathname,
url: "https://new-humas.polri.go.id/" + pathname,
articleId: Number(id),
};
@ -163,7 +163,7 @@ export default function Comment(props: { id: string | null }) {
}
const req: any = {
activityTypeId: 5,
url: "https://kontenhumas.com/" + pathname,
url: "https://new-humas.polri.go.id/" + pathname,
articleId: Number(id),
userId: Number(userId),
};

View File

@ -36,7 +36,7 @@ export default function EMagazineDetail() {
const doDownload = async (fileName: string, title: string): Promise<void> => {
try {
const response = await fetch(
`https://kontenhumas.com/magazine-files/viewer/${fileName}`
`https://new-humas.polri.go.id/magazine-files/viewer/${fileName}`
);
if (!response.ok) {

View File

@ -37,7 +37,7 @@ export default function NewsDetailPage(props: { datas: any }) {
const sendActivity = async () => {
let req: any = {
activityTypeId: 2,
url: "https://kontenhumas.com" + pathname,
url: "https://new-humas.polri.go.id" + pathname,
articleId: Number(id?.split("-")[0]),
};
if (uid) {

View File

@ -42,11 +42,11 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
const handleShare = async (platform: string) => {
let shareLink = "";
const urls = "https://kontenhumas.com/" + pathname;
const urls = "https://new-humas.polri.go.id/" + pathname;
let req: any = {
activityTypeId: 3,
url: "https://kontenhumas.com/" + pathname,
url: "https://new-humas.polri.go.id/" + pathname,
articleId: Number(id?.split("-")[0]),
};
if (uid) {

View File

@ -125,5 +125,5 @@ self.addEventListener("push", function (event) {
self.addEventListener("notificationclick", function (event) {
console.log("Notification click received.");
event.notification.close();
event.waitUntil(clients.openWindow("<https://kontenhumas.com>"));
event.waitUntil(clients.openWindow("<https://new-humas.polri.go.id>"));
});

View File

@ -2,7 +2,7 @@ import axios from "axios";
import { postSignIn } from "../master-user";
import Cookies from "js-cookie";
const baseURL = "https://kontenhumas.com/api";
const baseURL = "https://new-humas.polri.go.id/api";
const refreshToken = Cookies.get("refresh_token");

View File

@ -1,6 +1,6 @@
import axios from "axios";
const baseURL = "https://kontenhumas.com/api";
const baseURL = "https://new-humas.polri.go.id/api";
const axiosBaseInstance = axios.create({
baseURL,

View File

@ -1,6 +1,6 @@
import axios from "axios";
const baseURL = "https://kontenhumas.com/api";
const baseURL = "https://new-humas.polri.go.id/api";
const axiosInterceptorInstance = axios.create({
baseURL,