Skip to content

Instantly share code, notes, and snippets.

/* eslint-disable @typescript-eslint/no-unused-vars */
import * as Sentry from '@sentry/react';
import { getCookie } from './cookies-handlers';
import {
getUserEmail,
getUserFullName,
getUserFirstName,
getUserLastName,
} from './user-details';
import store from '../../store';

Problem Analysis

Your current sitemap is generating all user profiles in a single sitemap file, which exceeds the 50,000 URL limit. Here's what's happening:

  1. Single Sitemap: All profiles go into one sitemap.xml
  2. No Branching: No mechanism to split into multiple files
  3. Scalability Issue: As you add more profiles, you'll keep hitting the limit

Solution: Sitemap Branching Implementation