Add SEO features: sitemap, robots.txt, and JSON-LD data#63
Merged
truthixify merged 2 commits intoJun 29, 2026
Merged
Conversation
|
@Dubemtopsite is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Dubemtopsite Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Clean merge. Sitemap + robots.txt + JSON-LD via scripts + README update + index.html SEO meta. Same-day delivery on yesterday's assignment. Thanks @Dubemtopsite. |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description: feat(seo): Add Sitemap, Robots.txt, and JSON-LD Structured Data
Closes #23
This PR implements a comprehensive SEO and structured data setup for Wraith Protocol, including automated sitemap generation, crawl guidelines via
robots.txt, rich JSON-LD schema objects, and page-specific metadata injection during the build process.🚀 Key Changes
1. 🤖 Crawl & Indexing Configuration
public/robots.txt: Declares default crawler behaviors (allowing indexation on all routes) and points search engines to the location of the XML sitemap.2. 🗺️ Automated Sitemap Generation
scripts/sitemap.ts: A node script that scans the built production assets indist/and dynamically generates asitemap.xmlmatching all active static routes (such as/,/blog,/compare,/faq,/privacy,/stellar,/use-cases).sitemap.xmlto bothdist/(for immediate hosting/deployment) andpublic/(for version control and dev previews).3. 🏷️ Structured Data (JSON-LD) & Page Metadata Patching
index.htmlfor search engines to recognize:Organization: Represents Wraith Protocol (defining logo, site URL, and social presence).SoftwareApplication: Represents the Wraith Protocol SDK (detailing package category, supported platforms, download URL on npm, and free licensing details).scripts/og.ts):BreadcrumbListschema dynamically matching the hierarchy of the subpages (e.g.Home->Stellaron the/stellarroute).4. ⚙️ Build Pipeline Integration & Documentation
package.json: Appended the sitemap scripttsx scripts/sitemap.tsto thebuildscript execution sequence, ensuring SEO artifacts are automatically built alongside distribution assets.README.md: Added dedicated sections describing the updated build steps and documenting howrobots.txt,sitemap.xml, and JSON-LD structures operate.🛠️ File-by-File Breakdown
public/robots.txt[NEW]: Configures crawler directives and registers the sitemap path.public/sitemap.xml[NEW]: Static placeholder sitemap containing existing routes.scripts/sitemap.ts[NEW]: Compiles the list of production routes and outputs a fresh sitemap.index.html[MODIFY]: Added mainOrganizationandSoftwareApplicationJSON-LD schema blocks, plus a container script tag for the breadcrumbs.scripts/og.ts[MODIFY]: Expanded OG logic topatchMetadataincluding custom HTML page titles, description tags, and dynamic route breadcrumbs.package.json[MODIFY]: Runsscripts/sitemap.tson standard build workflows.README.md[MODIFY]: Documented build pipeline additions and details about SEO metadata files.🧪 Verification & Testing