M
M
massef2019-02-19 18:45:44
Vue.js
massef, 2019-02-19 18:45:44

Nuxt.js How to split an application?

Is it possible and necessary to divide the application into two parts? A face with SSR, but a personal account without SSR
In fact, SSR is not needed inside the personal account

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
karambafe, 2019-02-24
@massef

Obviously it is impossible, at least there is not a word about this in the documentation, and when creating a new application through the starter, there is a choice of universal (SSR + CSR) or client-side only mode.
The standard solution to this issue is to divide it into two different applications:
1. The muzzle (especially if it's a simple landing page) is done on any technology (the same nuxtjs in statics generation mode).
2. The admin panel is made on any client-side framework (Vue, React, etc), because it usually does not need SEO and there are no increased requirements for loading speed, tti time, etc. You can "settle" it on a subdomain.
This way you get 2 static applications, which means you don't have to worry about node.js :)
Plus, from my experience with nuxt.js, I can say that it has its own peculiarities with a router, storage, connecting third-party libraries. Plus its own system of modules - a separate module axios, proxy, and so on.
You also need to clearly understand when client rendering and when server rendering is in progress.
In general, at the initial stage, development time can decently increase.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question