Skip to content

feat: fetch sitemap dynamically - #181

Merged
Alessandro100 merged 1 commit into
mainfrom
feat/19-fetch-generated-sitemap
Aug 20, 2026
Merged

feat: fetch sitemap dynamically#181
Alessandro100 merged 1 commit into
mainfrom
feat/19-fetch-generated-sitemap

Conversation

@Alessandro100

Copy link
Copy Markdown
Contributor

Summary:

closes #19

This PR consumes the dynamically generated sitemap that is created from MobilityData/mobility-feed-api#1802. It has a cache life of 1 hour.

Expected behavior:

When a user (mainly bots) requests the sitemap by going on mobilitydatabase/sitemap.xml nextjs will check if it exists in cache, if yes, it will return it, if not, it will fetch the sitemap from the specified GCP bucket

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with yarn test to make sure you didn't break anything
  • Add or update any needed documentation to the repo
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

@Alessandro100 Alessandro100 self-assigned this Aug 20, 2026
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mobilitydatabase-web Ready Ready Preview Aug 20, 2026 12:09pm

Request Review

@github-actions

Copy link
Copy Markdown

*Lighthouse ran on https://mobilitydatabase-66v0ah2je-mobility-data.vercel.app/ * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🟢 92 🟢 94 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-66v0ah2je-mobility-data.vercel.app/feeds * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🟠 78 🟠 87 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-66v0ah2je-mobility-data.vercel.app/feeds/gtfs/mdb-2126 * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🔴 29 🟢 94 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-66v0ah2je-mobility-data.vercel.app/feeds/gtfs_rt/mdb-2585 * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🟠 86 🟠 84 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-66v0ah2je-mobility-data.vercel.app/feeds/gbfs/gbfs-flamingo_porirua * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🟢 95 🟢 94 🟢 96 🟢 100

@Alessandro100
Alessandro100 merged commit fce6975 into main Aug 20, 2026
4 checks passed
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.

Automate sitemap generation

2 participants