@faustwp/core@3.1.0
·
110 commits
to canary
since this release
Minor Changes
-
2b7949b: - Added support for configuring a custom sitemap index path via the
sitemapIndexPath
option ingetSitemapProps
, 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 whenisPreview
was null.