Signal and middleware updates
This commit is contained in:
parent
31faf22fd5
commit
27300b2530
3 changed files with 4 additions and 5 deletions
|
|
@ -48,6 +48,9 @@ const processMessage = async ({
|
||||||
const { envelope } = msg;
|
const { envelope } = msg;
|
||||||
console.log(envelope);
|
console.log(envelope);
|
||||||
const { source, sourceUuid, dataMessage } = envelope;
|
const { source, sourceUuid, dataMessage } = envelope;
|
||||||
|
|
||||||
|
if (!dataMessage) return [];
|
||||||
|
|
||||||
const { attachments } = dataMessage;
|
const { attachments } = dataMessage;
|
||||||
const rawTimestamp = dataMessage?.timestamp;
|
const rawTimestamp = dataMessage?.timestamp;
|
||||||
const timestamp = new Date(rawTimestamp);
|
const timestamp = new Date(rawTimestamp);
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export const ZammadLoginProvider: FC<PropsWithChildren> = ({ children }) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
window.location.href = "/auth/sso";
|
window.location.href = "/zammad/auth/sso";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,4 @@ export default withAuth(checkRewrites, {
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: ["/((?!ws|wss|api|_next/static|_next/image|favicon.ico).*)"],
|
matcher: ["/((?!ws|wss|api|_next/static|_next/image|favicon.ico).*)"],
|
||||||
missing: [
|
|
||||||
{ type: "header", key: "next-router-prefetch" },
|
|
||||||
{ type: "header", key: "purpose", value: "prefetch" },
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue