You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During production builds under Netlify, we do sanity checks, which include link checking. Our link checker is htmltest, which is run on the generated site files before they are published to the production server. So it doesn't make sense to check canonical links, which point to the production server, since the new site hasn't been deployed yet.
There is little benefit in checking those canonical links, and in fact, any reported errors would likely be false positives because the new site hasn't been deployed.
I could modify the OTel partial to add a special tag to the canonical link element, but it'll be simpler to just ignore <link> elements with rel attributes. Yes, that'll rule out link elements other than rel="canonical", but this is only meant as a sanity test, and we won't miss out on very many extra ` elements.
The text was updated successfully, but these errors were encountered:
During production builds under Netlify, we do sanity checks, which include link checking. Our link checker is
htmltest
, which is run on the generated site files before they are published to the production server. So it doesn't make sense to check canonical links, which point to the production server, since the new site hasn't been deployed yet.Here's an excerpt from a build log, https://app.netlify.com/teams/opentelemetry/builds/66ad42e51e6650000862745d:
The link checker is "hitting" canonical links, e.g.:
There is little benefit in checking those canonical links, and in fact, any reported errors would likely be false positives because the new site hasn't been deployed.
I could modify the OTel partial to add a special tag to the canonical link element, but it'll be simpler to just ignore
<link>
elements withrel
attributes. Yes, that'll rule outlink
elements other thanrel="canonical", but this is only meant as a sanity test, and we won't miss out on very many extra
` elements.The text was updated successfully, but these errors were encountered: