5 messages · Page 1 of 1 (latest)
you can't use router in server components
use a client component instead
The useRouter hook allows you to programmatically change routes inside Client Components.
Server components don't replace client components.
client is the only way to go in this case