SSR disable for app router
Unanswered
Fire ant posted this in #help-forum
Fire antOP
Hello everyone, I have a question. Can we turn off server-side rendering (SSR) for the entire app in Next.js 14 using the app router? Since the
target: serverless option has been removed from the next.config.js file, and while I know about the react-no-ssr method, it only works for individual pages, not the whole app. Is there a simpler way to disable SSR for the entire app at once? Thank you.8 Replies
why?
Asian black bear
Hey Any updates?
If you want ot disable SSR everywhere, I suggest taking a look at Vite rather than Next
but if you still want Next the link from Colin Hacks should help
I've also shared tips to handle client-only code in a server-side rendered app
Asian black bear
Okay which means I have to make component in client and then wrap the whole app inside this component is it?? is there any other official way provided by Next.Js?? Thanks for help @Eric Burel 😊