Skip to content

@faustwp/core@3.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Aug 16:10
· 110 commits to canary since this release
8a42375

Minor Changes

  • 2b7949b: - Added support for configuring a custom sitemap index path via the sitemapIndexPath option in getSitemapProps, enhancing compatibility with plugins like RankMath that modify the default sitemap path.

    import { getSitemapProps } from '@faustwp/core';
    
    export default function Sitemap() {}
    
    export function getServerSideProps(ctx) {
      return getSitemapProps(ctx, {
        sitemapIndexPath: '/sitemap_index.xml', // RankMath changes the default sitemap path to this
        frontendUrl: process.env.NEXT_PUBLIC_SITE_URL,
        sitemapPathsToIgnore: ['/wp-sitemap-users-*'],
      });
    }

Patch Changes

  • 031c239: Fixes a bug where the WordPressTemplate component would return null on the server when isPreview was null.