Skip to content

Discovery

Danny White edited this page Apr 13, 2025 · 1 revision

Getting the word about Peels out there, beyond manual community outreach.

Public listings

Community and business listings are made public to search engines and signed out users, both visually and via meta tag properties in the document head. Residential listings are kept private since they are almost always people’s homes, and their hosts often use their real name alongside their listing.

Sitemap

A new sitemap.xml is generated each time the Peels Next.js app is built, via the sitemap() function in sitemap.js. In short, it:

  1. Goes through each (currently visible) listing
  2. Excludes residential listings
  3. Adds them to the sitemap definition alongside the static pages

This sitemap is referenced in robots.txt to make it slightly easier for search engines to pick up.

Improvements

The lastModified value for the listings is currently using the listing.created_at value. Ideally this would instead use a yet-to-exist updated_at column.

Clone this wiki locally