try to fix rediirect issues
This commit is contained in:
@ -31,7 +31,8 @@ const axiosServer = async (context) => {
|
||||
}
|
||||
else {
|
||||
//redirect to next-auth login page
|
||||
context.res.writeHead(302, { Location: encodeURIComponent('/api/auth/signin') });
|
||||
//context.res.writeHead(302, { Location: encodeURIComponent('/api/auth/signin') });
|
||||
|
||||
context.res.end();
|
||||
return { props: {} };
|
||||
}
|
||||
|
Reference in New Issue
Block a user