Skip to content

Commit b5a9e0e

Browse files
committed
fix: exclude .well-known/llms.txt from starlight link validator
sameSitePolicy validate rewrites aptos.dev URLs to paths; /.well-known/llms.txt strips to .well-known/... which the plugin treats as a relative link. The URL is served by Vercel redirect, not a Starlight page, so skip validation.
1 parent aa86467 commit b5a9e0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

astro.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ export default defineConfig({
144144
return true;
145145
}
146146

147+
// Same-site absolute URL becomes `/.well-known/llms.txt`; after stripping `/` the path
148+
// starts with `.` and is misclassified as a relative link. Production serves this via
149+
// Vercel redirect to /llms.txt, not as a doc route.
150+
if (link.includes("/.well-known/llms.txt")) {
151+
return true;
152+
}
153+
147154
// Exclude specific problematic links from external move-reference content
148155
const excludeLinks = [
149156
"https://aptos.dev/move/book/SUMMARY",

0 commit comments

Comments
 (0)