Skip to content

Generate robots.txt#9

Merged
mbwatson merged 6 commits intostagecc:mainfrom
mbwatson:feature/robots-txt
Mar 5, 2026
Merged

Generate robots.txt#9
mbwatson merged 6 commits intostagecc:mainfrom
mbwatson:feature/robots-txt

Conversation

@mbwatson
Copy link
Copy Markdown
Member

@mbwatson mbwatson commented Mar 4, 2026

Description

Merging this PR uses astro-robots-txt to add a robots.txt file

note this also comes with a dynamically generated siteUrl for astro config.

Additional changes

calling exclude('iframe') on Axe instantiation is the right way to skip iframes.

How to validate

  • run a site build and find a robots.txt file at the root of apps/site/dist. verify its contents align with robotsTxtConfig

@mbwatson mbwatson changed the title set up robots.txt generation Generate robots.txt Mar 4, 2026
using astro-robots-txt

note this also comes with a dynamically generated siteUrl for astro config.

lint
@mbwatson mbwatson force-pushed the feature/robots-txt branch from ce6cb67 to e271d19 Compare March 4, 2026 12:55
@mbwatson mbwatson requested a review from suejinkim20 March 4, 2026 18:19
Copy link
Copy Markdown
Collaborator

@suejinkim20 suejinkim20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirming that robots.txt is created in the dist folder upon build.

10:14:23 [@astrojs/sitemap] `sitemap-index.xml` created at `dist`
astro-robots-txt: `robots.txt` is created.

Contents of robots.txt appear to align with robotsTxtConfig:

User-agent: *
Disallow: /
Sitemap: https://biodatacatalyst.nhlbi.nih.gov/sitemap-index.xml

@mbwatson mbwatson merged commit 85695df into stagecc:main Mar 5, 2026
4 checks passed
@mbwatson mbwatson deleted the feature/robots-txt branch March 5, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants