Next.js Discord

Discord Forum

Help for Nextjs 14 redirect

Unanswered
Air Penguin posted this in #help-forum
Open in Discord
I am working on a subscription-based project with Next.js 14, and there are a few user survey pages before the actual subscription page.

I need to retrieve the user's subscription information when initializing and determine the page flow based on the various responses from the API, which involves potentially four or five different redirection scenarios.

At the moment, I'm utilizing client-side routing, but this causes an issue where, during the initial load, the user visits page A and then there is a momentary flicker before being redirected to page B.

What would be a preferable method of redirection to use?

0 Replies