I'm trying to check if the user has safe data, but if they don't, they will be redirected to /waitlist. #67919
Unanswered
bznbot
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`Why it is not working?
`export async function POST(req: NextRequest, res: NextResponse) {
try {
const json = await req.json();
const body = userJoinSchema.parse(json);
} catch (error) {
return NextResponse.json({ error: error }, { status: 500 });
}
}``
Beta Was this translation helpful? Give feedback.
All reactions