SSG, fallbacks and SEO considerations #12482
-
Hi there, I struggle with the following question... Whether fallback pages will be a blocker for crawlers on their "first visit" since they generate a static HTML with no potential SEO content or they will somehow pass the crawl and can produce correct data for the SEO? It potentially related to OG preview generation and indexing. What happens from the SEO point when we haven't rendered SSG page yet? How do the not-pre-renreded pages behave for SEO? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Google's crawlers will run JS in the client so the fallbacks won't negatively affect your SEO performance, for others crawlers you can read Joe's response here: #11552 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
I have a demo for your purpose here So, when user first visit a non-static page, you will write the page into cache (public path is My {
"builds": [
{
"src": "node/serverless.js",
"use": "@now/node",
"config": {
"includeFiles": [
"node/*.json",
"node/*.js"
]
}
}, {
"src": "web/**/*",
"use": "@now/static"
}
],
"routes": [
{ "src": "/", "dest": "web/www/index.html" },
{ "src": "/about/wartortle'", "dest": "web/www/about/wartortle.html", "continue": false },
{ "src": "^/static/(.+)", "dest": "web/$1" },
{ "src": "^/(.*)", "dest": "node/serverless.js"}
]
} Notice the |
Beta Was this translation helpful? Give feedback.
Google's crawlers will run JS in the client so the fallbacks won't negatively affect your SEO performance, for others crawlers you can read Joe's response here: #11552 (reply in thread)