feat: change domain to prod fqdn
This commit is contained in:
parent
854994e2c8
commit
aca5e5e119
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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>"));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue