How to redirect in nextjs?
Answered
Western Screech-Owl posted this in #help-forum
Western Screech-OwlOP
So i want to redirect my user to "/home" as soon as they visit my site but the redirect function is for async it seems. I get an error with this saying argument invalid
2 Replies
Ray
import { redirect } from 'next/navigation';
Answer
Western Screech-OwlOP
thanks not sure why my import was like that