1

I'm developing an application in Nuxt 3. Part of that application is only accessible if you are logged in. I want to disable SSR for those routes, while keeping it on for routes that are publicly available.

Is there a way to do that in Nuxt 3? I only found an option to disable SSR globally in the nuxt.config.ts file

Sirius
  • 67
  • 6
  • This question should be reopened. The linked question solves it only for Nuxt2. – manniL Sep 11 '22 at 20:32
  • @manniL, the other _question_ does not specifically ask about Nuxt 2. Are you talking about a particular answer? Do the answers for Nuxt >v2.9.0 apply to Nuxt 3 (I honestly don't know)? In any case, this question remains a duplicate of the other one and should remain closed. – ChrisGPT was on strike Sep 11 '22 at 22:02
  • @Chris Sadly, the given answer is not valid for Nuxt 3, only Nuxt 2. Because handling this is way different for Nuxt 3 and Nuxt 2, I don't necessarily see it as duplicate, as the other question is rather considering Nuxt 2 only (given the date of creation and answers. It makes sense to have different answers for each version IMO. – manniL Sep 12 '22 at 08:07
  • @manniL, we don't decide whether questions are duplicates based on the answers they have received, but based on what they _ask_. Since the older question doesn't specificy Nuxt 2, I'd argue that this question remains a duplicate. An answer for Nuxt 3 could be properly added to the older question. If you have such an answer, I'd encourage you to add it over there. If not, a bounty can be added the older question to encourage other users to add new answers. – ChrisGPT was on strike Sep 12 '22 at 14:07

0 Answers0