Skip to content
Open
34 changes: 8 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"@clerk/nextjs": "^4.25.6",
"@netlify/next": "^1.4.9",
"@reduxjs/toolkit": "^1.9.5",
"@tanem/react-nprogress": "^5.0.36",
"axios": "^1.3.6",
Expand All @@ -25,7 +24,7 @@
"moment": "^2.29.4",
"mongoose": "^7.6.3",
"next": "^13.4.12",
"next-auth": "^4.22.1",
"next-auth": "^4.24.4",
"path-to-regexp": "^6.2.1",
"rdndmb-html5-to-touch": "^8.0.3",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/auth/AuthForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const AuthForm = (props) => {
const googleAuthHandler = (event) => {
event.preventDefault();

let redirectLink = "/";
let redirectLink = `/?`;
if (redirect && joinClass === "true" && classId) {
redirectLink = `/?jc=true&id=${classId}`;
}
Expand Down
1 change: 1 addition & 0 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export async function middleware(request) {
});

const PUBLIC_FILE = /\.(.*)$/;

const { pathname } = request.nextUrl;

if (
Expand Down