ip logging for error reporting
This commit is contained in:
+2
-1
@@ -4,7 +4,7 @@ import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import { setCookie } from "nookies";
|
||||
import { connect } from "react-redux";
|
||||
import { getToken, hashString, getPortalLogin } from "../actions";
|
||||
import { getToken, hashString, getPortalLogin, getIP } from "../actions";
|
||||
import CookieBanner from "../components/cookieBanner";
|
||||
import Footer from "../components/footer";
|
||||
import Header from "../components/header";
|
||||
@@ -151,6 +151,7 @@ const Home = (props) => {
|
||||
export const getServerSideProps = wrapper.getServerSideProps(
|
||||
(store) => async (ctx) => {
|
||||
const { query, req, res } = ctx;
|
||||
getIP(req);
|
||||
|
||||
let thisSession = await getSession(ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user