Riad
Riad
NNuxt
Created by Riad on 12/20/2024 in #❓・help
Nuxt SPA build not building nitro server
i have an app with nuxt that i want to turn into an SPA, since it's all behind auth i dont really need SSR. using npx nuxi generate with ssr: false does build the project as an SPA but my only issue now is that i have server routes but with this setup the nuxt build is not building the api nitro server at all, any ideas how to resolve that ? my workaround is to have two builds one for the SPA and the other for the server first build: build SPA with with generate + ssr false -> host statically second build: normal build -> host with nodejs and call /api routes
6 replies