Answer the question
In order to leave comments, you need to log in
What's the difference between standalone API on Node and API on serverMiddleware?
Sorry if the question seems stupid, I'm only learning NUXT JS, but explain to me the fundamental difference between:
Answer the question
In order to leave comments, you need to log in
The question is not quite correctly posed, but it is more difficult to answer it correctly than the nuxt documentation
https://nuxtjs.org/api/configuration-servermiddleware/
That is, if you use a Node+express server to give static and respond to various RESTs (where middlewars are also used, by the way), then serverMiddleware is part of the nuxt ecosystem for SSR (Server side rendering).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question