N
Nuxt9mo ago
Omnislash

Deploy without Nitro

Hello, I'm using Nuxt only as a front, coding the back on Adonis. I disabled the SSR, since you need to be connected to see any part of my service there is no SEO involved (and I'm actually here to minimize the workload on the server ends) I don't seem to find in the documentation or from a trusted source how to disable Nitro and deploy without it. Is there any link about it please ^^ ? Thanks
6 Replies
Sandvich
Sandvich9mo ago
I believe Nitro is way too ingrained into the framework to be removed. Without it nothing would work. I believe when you fetch a page (even non SSR) you hit the nitro code first which creates your nuxt instance. For what reason would you want to remove nitro? Could you solve your problem by doing just Vue?
Omnislash
OmnislashOP9mo ago
Nuxt brings more than Nitro to the table that I love using I don't mind Nitro existing, it was more in the "only deploy what I really use" logic ^^
Kyllian
Kyllian9mo ago
wouldn’t it be easier to switch to next?
Omnislash
OmnislashOP9mo ago
never tried it, I wanted to work with vue, used vite a little, nuxt was kind of the "normal" next step (no pun intended) ? In the meantime I actually found the documentation in nuxt to export the static website with and without SSR/Nitro and host as such And tbh I will have a huge use of the SSR and all for a project in a year or two, sooo it's nice to capitalize on half of nuxt already I guess ^^
Single
Single9mo ago
You want to use 'npm run generate' instead of 'npm run build' to generate a static site without the need to host server-side code, thus its client only.
Omnislash
OmnislashOP9mo ago
Thanks a lot ^^
Want results from more Discord servers?
Add your server