Hey there! I'm currently diving into a project that involves using nuxt js, and it's all new to me. I've set it up in spa mode without any modifications in the nuxt config file, just sticking with the default settings. Here's how I've organized my pages:
pages/users/index.vue - displays a list of users
pages/users/_id.vue - shows details of a specific user
I've completed the deployment by running the commands npm run build and npm run start. The dist directory is now hosted on an nginx server.
The problem arises when I try to access /user/id directly through the URL or refresh the page – I end up getting a nginx 404 error page instead of my intended content being rendered.
I've come across suggestions about using nuxt generate for pre-rendering pages, but I'm uncertain if it would be suitable for handling a large number of records efficiently. Any advice or assistance on this matter would be greatly appreciated!
Thanks in advance!