DEV Community

Discussion on: Client-Side and Server-Side Redirects in Next.js

Collapse
 
brennerspear profile image
Brenner

Hey Justin - I implemented the server-side version of your code. and it just returns me the json as opposed to redirecting me. Any thoughts on why?

Collapse
 
steveruizok profile image
Steve Ruiz

Any chance you're calling res.send rather than res.end?