-
-
Notifications
You must be signed in to change notification settings - Fork 0
Harden releases and documentation SEO #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
453f9f4
629d5da
5248cb2
faf3ede
bd22261
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import type { MetadataRoute } from "next"; | ||
|
|
||
| export default function robots(): MetadataRoute.Robots { | ||
| return { | ||
| rules: [ | ||
| { | ||
| userAgent: "*", | ||
| allow: "/", | ||
| disallow: ["/api/"], | ||
| }, | ||
| { userAgent: "GPTBot", allow: "/" }, | ||
| { userAgent: "ClaudeBot", allow: "/" }, | ||
| { userAgent: "PerplexityBot", allow: "/" }, | ||
| { userAgent: "Google-Extended", allow: "/" }, | ||
| ], | ||
| sitemap: "https://agents-compat.jstn.site/sitemap.xml", | ||
| host: "https://agents-compat.jstn.site", | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import type { MetadataRoute } from "next"; | ||
| import { source } from "@/lib/source"; | ||
|
|
||
| export default function sitemap(): MetadataRoute.Sitemap { | ||
| return source.getPages().map((page) => ({ | ||
| url: `https://agents-compat.jstn.site${page.url}`, | ||
| lastModified: new Date(), | ||
| changeFrequency: "monthly", | ||
| priority: page.url === "/docs" ? 1 : 0.7, | ||
| })); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| google-site-verification: googleb24d000c6a1cb7c4.html | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The deployed Next.js application and its existing static assets live under Useful? React with 👍 / 👎. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When contributors run either script with pnpm on a standard Windows installation, the scripts execute through
cmd.exe, wherermis not available, so testing stops before the build or test suite runs. The previous commands were portable Node/TypeScript invocations; use a cross-platform cleanup such as a small Nodefs.rmSynccommand or a portable removal dependency.Useful? React with 👍 / 👎.