Fix authorized route false flag

This commit is contained in:
SleeplessOne1917 2023-06-29 18:12:22 -04:00
parent 2d88e42cab
commit cc184a86c8
2 changed files with 1 additions and 3 deletions

View file

@ -29,8 +29,6 @@ export function setCacheControl(
) {
const user = UserService.Instance;
let caching: string;
console.log("In middleware");
console.log(process.env.NODE_ENV);
if (
process.env.NODE_ENV === "production" &&

View file

@ -1,5 +1,5 @@
export default function isAuthPath(pathname: string) {
return /create_.*|inbox|settings|admin|reports|registration_applications/g.test(
return /^\/create_.*|inbox|settings|admin|reports|registration_applications/g.test(
pathname
);
}