Update middleware.ts
This commit is contained in:
parent
0d4cba7e42
commit
57082a7c4a
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ export default authMiddleware({
|
|||
email.emailAddress.includes("ama.ab.ca")
|
||||
);
|
||||
|
||||
console.log("ISAMA: ", isAMA);
|
||||
|
||||
if (isAMA && isAMA?.length > 0) {
|
||||
return NextResponse.redirect(
|
||||
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
|
||||
|
|
Loading…
Add table
Reference in a new issue