Answer the question
In order to leave comments, you need to log in
How to properly set up dynamic routes in nuxt.js?
I am making an application in nuxt.js. I use SPA mode (not SSR). I have dynamic routes, i.e.:
pages/posts/index.vue
pages/posts/_id.vue
I build the project, I place it on the nginx server.
Everything works well, except for direct access to /posts/id links. I get 404 or 500 error.
Is it possible to set up dynamic pages in SPA mode?
I will add post pages through the database and I want to have one template on the client.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question