Prerender 404 issue with Google Crawl
I'm running my Nuxt app as a static site using nuxt generate. I have thousands of images(URLS) on my website, so I can only prerender a limited number of pages (around 60). However, visiting non-prerendered pages results in a 404 error eventhought page still loaded, impacting Google Search crawling. How can I resolve this while maintaining a static site approach?
URL below:
https://pictographic.io/free-vector-illustrations/images/a-visual-metaphor-for-artificial-intelligence-or-a-machine-like-mind
Thank for your help
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1247435439564918814/image.png)
2 Replies
You need to set up a fallback 404 file in nginx
this is a similar question https://stackoverflow.com/questions/52471007/how-to-handle-404-error-request-in-vuejs-spa-with-nginx-server
Stack Overflow
How to handle 404 error request in vuejs SPA with nginx server
I have set up my vue-cli version 3 SPA so that any requests not found in my routes.js file will default to my 404 view as shown in the official documentation:
Inserted near bottom of routes.js fil...