Expand prerender crawling for improved DX #10276
jasongitmail
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Specifically, a few common situations that would benefit from it:
sitemap.xml
- could be found by crawling robots.txt'sSitemap: <url>
line.blog/atom.xml
or similar - could be found by crawling any link rel alternate's path -- e.g.<link rel="alternate" href="/blog/atom.xml" type="application/atom+xml" />
or<link rel="alternate" href="/blog/atom.xml" type="application/rss+xml" />
<meta property="og:image" content={ogImage} />
1 & 2 are easily to add to
svelte.config.js
via:But 3 is harder because the route depends upon a dynamic param where the title of the posts may be unknown beforehand.
But in any case, the main point is to suggest these as an opportunity to improve the DX so other devs don't bump into prerendering errors for these common situations.
I'll create a feature request if this seems reasonable.
Beta Was this translation helpful? Give feedback.
All reactions